From 84b30be90486381a114db9ea57c14213a7a3d753 Mon Sep 17 00:00:00 2001 From: Saul Date: Fri, 1 May 2015 23:36:08 -0700 Subject: [PATCH] Make firewall.py use the right params for islocal --- src/firewall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/firewall.py b/src/firewall.py index 058aafe..3dad587 100644 --- a/src/firewall.py +++ b/src/firewall.py @@ -337,7 +337,7 @@ def _handle_diversion(divertsock, dnsport): _real_dns_server[0] = dst dst = ('127.0.0.1', dnsport) elif src[1] == dnsport: - if islocal(src[0]): + if islocal(src[0], divertsock.family): debug3('...packet is a DNS response.\n') src = _real_dns_server[0] else: