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:
parent
5989f6ca0b
commit
76f57ca7eb
1 changed files with 0 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue