sshtunnel: fixes validation bug with dynamic port forwarding.

Thanks to Avi Alkalay <avi@unix.sh>

Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>
This commit is contained in:
Nuno Goncalves 2015-05-25 22:03:13 +01:00
parent 5989f6ca0b
commit 76f57ca7eb

View file

@ -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