Fix LGTM reported issues

This commit is contained in:
Brian May 2022-04-24 16:42:47 +10:00
parent 181bf648a7
commit 30cdc5e74b
3 changed files with 4 additions and 5 deletions

View File

@ -46,7 +46,7 @@ setup(
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: "
"License :: OSI Approved :: " +
"GNU Lesser General Public License v2 or later (LGPLv2+)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",

View File

@ -33,7 +33,8 @@ def main():
parser.error('exactly zero arguments expected')
return firewall.main(opt.method, opt.syslog)
elif opt.hostwatch:
return hostwatch.hw_main(opt.subnets, opt.auto_hosts)
hostwatch.hw_main(opt.subnets, opt.auto_hosts)
return 0
else:
# parse_subnetports() is used to create a list of includes
# and excludes. It is called once for each parameter and

View File

@ -7,8 +7,6 @@ from sshuttle.helpers import Fatal, debug3
def original_dst(sock):
ip = "0.0.0.0"
port = -1
try:
family = sock.family
SO_ORIGINAL_DST = 80