aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_parse.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/c_parse.go7
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 {