mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-01-21 05:19:25 +01:00
Merge pull request #9 from scommab/patch-1
Make firewall.py use the right params for islocal
This commit is contained in:
commit
00f20657e3
@ -337,7 +337,7 @@ def _handle_diversion(divertsock, dnsport):
|
|||||||
_real_dns_server[0] = dst
|
_real_dns_server[0] = dst
|
||||||
dst = ('127.0.0.1', dnsport)
|
dst = ('127.0.0.1', dnsport)
|
||||||
elif src[1] == dnsport:
|
elif src[1] == dnsport:
|
||||||
if islocal(src[0]):
|
if islocal(src[0], divertsock.family):
|
||||||
debug3('...packet is a DNS response.\n')
|
debug3('...packet is a DNS response.\n')
|
||||||
src = _real_dns_server[0]
|
src = _real_dns_server[0]
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user