diff options
author | Joe <rbo@gmx.us> | 2024-02-02 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-02-02 20:20:20 +0100 |
commit | 9304f9286b2553497b7f9b46a9ed8336e5f7d2e3 (patch) | |
tree | 48f1ba83f6a22b38c059f6ffe3712c30a2711294 /src/c_parse.go | |
parent | func pointers yo (diff) | |
download | hardflip-9304f9286b2553497b7f9b46a9ed8336e5f7d2e3.tar.gz hardflip-9304f9286b2553497b7f9b46a9ed8336e5f7d2e3.tar.bz2 hardflip-9304f9286b2553497b7f9b46a9ed8336e5f7d2e3.tar.xz hardflip-9304f9286b2553497b7f9b46a9ed8336e5f7d2e3.tar.zst hardflip-9304f9286b2553497b7f9b46a9ed8336e5f7d2e3.zip |
ok
Diffstat (limited to 'src/c_parse.go')
-rw-r--r-- | src/c_parse.go | 4 |
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") } |