[packages] sshtunnel: port value in server section is not read Signed-off-by: Ingo Schmidt <ich at der-ingo.de>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@36087 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nunojpg 2013-03-18 19:06:30 +00:00
parent 46fb1b3bf5
commit 2cf4f06354

View File

@ -96,6 +96,7 @@ load_server() {
config_get user $1 user
config_get hostname $1 hostname
config_get port $1 port "22"
config_get retrydelay $1 retrydelay "60"
config_get PKCS11Provider $1 PKCS11Provider
config_get CheckHostIP $1 CheckHostIP
@ -154,7 +155,7 @@ load_server() {
[ "$count" -eq 0 ] && { logger -p user.err -t "sshtunnel" "tunnels to $server not started - no tunnels defined"; return; }
append_params CheckHostIP Compression CompressionLevel IdentityFile LogLevel PKCS11Provider ServerAliveCountMax ServerAliveInterval StrictHostKeyChecking TCPKeepAlive VerifyHostKeyDNS
ARGS="$ARGS_options -o ExitOnForwardFailure=yes -o BatchMode=yes -nN $ARGS_tunnels $user@$hostname"
ARGS="$ARGS_options -o ExitOnForwardFailure=yes -o BatchMode=yes -nN $ARGS_tunnels -p $port $user@$hostname"
/usr/bin/sshtunnel.sh "$ARGS" "$retrydelay" "$server" &
echo $! >> "${PIDFILE}.pids"