From: Nuno Goncalves Date: Mon, 25 May 2015 21:03:13 +0000 (+0100) Subject: sshtunnel: fixes validation bug with dynamic port forwarding. X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=76f57ca7eb4308d95118a5eb7ff7a5f73addf989;p=openwrt-packages.git sshtunnel: fixes validation bug with dynamic port forwarding. Thanks to Avi Alkalay Signed-off-by: Nuno Goncalves --- diff --git a/net/sshtunnel/files/sshtunnel.init b/net/sshtunnel/files/sshtunnel.init index 4ca491f67..482ec6778 100644 --- a/net/sshtunnel/files/sshtunnel.init +++ b/net/sshtunnel/files/sshtunnel.init @@ -66,7 +66,6 @@ load_tunnelD() { config_get localaddress $1 localaddress "*" config_get localport $1 localport - [ "$remoteport" -gt 0 ] || append_string "error" "[tunnelD: $1]remoteport must be a positive integer" "; " [ "$localport" -gt 0 ] || append_string "error" "[tunnelD: $1]localport must be a positive integer" "; " [ -n "$error" ] && return 1