Skip to content

Commit

Permalink
[packages] sshtunnel: port value in server section is not read Signed…
Browse files Browse the repository at this point in the history
…-off-by: Ingo Schmidt <ich at der-ingo.de>

git-svn-id: svn://svn.openwrt.org/openwrt@36087 3c298f89-4303-0410-b956-a3cf2f4a3e73
  • Loading branch information
nunojpg committed Mar 18, 2013
1 parent adc1bbb commit b8332b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/net/sshtunnel/files/sshtunnel.init
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit b8332b1

Please sign in to comment.