Skip to content

Commit

Permalink
Fix LGTM reported issues
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmay committed Apr 24, 2022
1 parent 181bf64 commit 30cdc5e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def version_scheme(version):
"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",
Expand Down
3 changes: 2 additions & 1 deletion sshuttle/cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions sshuttle/methods/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@


def original_dst(sock):
ip = "0.0.0.0"
port = -1
try:
family = sock.family
SO_ORIGINAL_DST = 80
Expand Down Expand Up @@ -73,7 +71,7 @@ def recv_udp(udp_listener, bufsize):
def send_udp(self, sock, srcip, dstip, data):
if srcip is not None:
raise Fatal("Method %s send_udp does not support setting srcip to %r"
% (self.name, srcip))
% (self.name, srcip))
sock.sendto(data, dstip)

def setup_tcp_listener(self, tcp_listener):
Expand Down

0 comments on commit 30cdc5e

Please sign in to comment.