Skip to content

Commit 1b6165d

Browse files
committed
Fixed bug with exclude ports parameter - it can be a number so convert to string
1 parent 5a1ed2e commit 1b6165d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def parse_ipport(s):
9696
elif opt.firewall:
9797
if len(extra) != 2:
9898
o.fatal('exactly two arguments expected')
99-
sys.exit(firewall.main(int(extra[0]), int(extra[1]), opt.syslog, opt.username, opt.eports))
99+
sys.exit(firewall.main(int(extra[0]), int(extra[1]), opt.syslog, opt.username, str(opt.eports)))
100100
elif opt.hostwatch:
101101
sys.exit(hostwatch.hw_main(extra))
102102
else:
@@ -130,7 +130,7 @@ def parse_ipport(s):
130130
opt.auto_nets,
131131
parse_subnets(includes),
132132
parse_subnets(excludes),
133-
opt.syslog, opt.daemon, opt.pidfile, opt.username, opt.eports))
133+
opt.syslog, opt.daemon, opt.pidfile, opt.username, str(opt.eports)))
134134
except FatalNeedsReboot, e:
135135
log('You must reboot before using sshuttle.\n')
136136
sys.exit(EXITCODE_NEEDS_REBOOT)

0 commit comments

Comments
 (0)