'ServerAliveInterval:min(0)' \
'StrictHostKeyChecking:or("yes", "no", "accept-new"):accept-new' \
'TCPKeepAlive:or("yes", "no")' \
- 'VerifyHostKeyDNS:or("yes", "no")'
+ 'VerifyHostKeyDNS:or("yes", "no")' \
+ 'ProxyCommand:string(1)'
}
validate_tunnelR_section() {
procd_open_instance "$server"
procd_set_param command "$PROG" $ARGS
+ # ProxyCommand must be quoted
+ [ -n "$ProxyCommand" ] && procd_append_param command -o "ProxyCommand=$ProxyCommand"
+
procd_set_param stdout 1
procd_set_param stderr 1
procd_set_param respawn 0 "$retrydelay" 1