mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user