aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/c_parse.go')
-rw-r--r--src/c_parse.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/c_parse.go b/src/c_parse.go
index 9ce5b31..11d1677 100644
--- a/src/c_parse.go
+++ b/src/c_parse.go
@@ -115,6 +115,10 @@ func c_read_yaml_file(file string, ui *HardUI) (*HostNode, error) {
if host.Height == 0 {
host.Height = 1200
}
+ } else if host.Protocol == 2 {
+ if len(host.Shell) == 0 {
+ host.Shell = []string{"/bin/sh", "-c"}
+ }
} else if host.Protocol > PROTOCOL_MAX {
return nil, errors.New(file + ": unknown protocol")
}