diff options
| author | Joe <rbo@gmx.us> | 2024-04-11 20:20:20 +0200 | 
|---|---|---|
| committer | Joe <rbo@gmx.us> | 2024-04-11 20:20:20 +0200 | 
| commit | 7dd557c1d61489fdbeff817757bdc707929438a5 (patch) | |
| tree | 5171668de47735034b3a3a0f49581862b30edefd /src | |
| parent | tmp (diff) | |
| download | hardflip-7dd557c1d61489fdbeff817757bdc707929438a5.tar.gz hardflip-7dd557c1d61489fdbeff817757bdc707929438a5.tar.bz2 hardflip-7dd557c1d61489fdbeff817757bdc707929438a5.tar.xz hardflip-7dd557c1d61489fdbeff817757bdc707929438a5.tar.zst hardflip-7dd557c1d61489fdbeff817757bdc707929438a5.zip | |
go
Diffstat (limited to '')
| -rw-r--r-- | src/i_insert.go | 5 | 
1 files 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")) | 
