From 7dd557c1d61489fdbeff817757bdc707929438a5 Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 11 Apr 2024 20:20:20 +0200 Subject: go --- src/i_insert.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/i_insert.go b/src/i_insert.go index 2634014..c425a11 100644 --- a/src/i_insert.go +++ b/src/i_insert.go @@ -142,8 +142,9 @@ func i_insert_check_ok(data *HardData, in *HostNode) { data.insert_err = append(data.insert_err, errors.New("no name")) } if len(in.Host) == 0 { - // TODO: here rdpfile - data.insert_err = append(data.insert_err, errors.New("no host")) + if (in.Protocol == PROTOCOL_RDP && len(in.RDPFile) > 0) == false { + data.insert_err = append(data.insert_err, errors.New("no host")) + } } if in.Port == 0 { data.insert_err = append(data.insert_err, errors.New("port can't be 0")) -- cgit v1.2.3