diff options
author | Joe <rbo@gmx.us> | 2024-02-20 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-02-20 20:20:20 +0100 |
commit | bb0b6a312f07680514c419b9c7c6d5b3a47a0393 (patch) | |
tree | 76add444eb2bfa17fe0781e05599f322882ded82 /src/c_parse.go | |
parent | test (diff) | |
download | hardflip-bb0b6a312f07680514c419b9c7c6d5b3a47a0393.tar.gz hardflip-bb0b6a312f07680514c419b9c7c6d5b3a47a0393.tar.bz2 hardflip-bb0b6a312f07680514c419b9c7c6d5b3a47a0393.tar.xz hardflip-bb0b6a312f07680514c419b9c7c6d5b3a47a0393.tar.zst hardflip-bb0b6a312f07680514c419b9c7c6d5b3a47a0393.zip |
rdp_file
Diffstat (limited to '')
-rw-r--r-- | src/c_parse.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/c_parse.go b/src/c_parse.go index 11d1677..5375874 100644 --- a/src/c_parse.go +++ b/src/c_parse.go @@ -85,7 +85,12 @@ func c_read_yaml_file(file string, ui *HardUI) (*HostNode, error) { return nil, nil } if len(host.Host) == 0 { - return nil, nil + if len(host.RDPFile) > 0 { + host.Host = "rdp_file" + host.User = "rdp_file" + } else { + return nil, nil + } } if host.Protocol == 0 { if host.Port == 0 { |