From 48f3130d47afbc34fbf55c08cb130cc835dac317 Mon Sep 17 00:00:00 2001 From: Rupert Edwards Date: Thu, 14 Jan 2016 12:15:46 -0500 Subject: [PATCH] Updated toriptables2.py Refactor --- toriptables2.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/toriptables2.py b/toriptables2.py index 1309e90..4d19bd4 100755 --- a/toriptables2.py +++ b/toriptables2.py @@ -60,8 +60,7 @@ DNSPort %s call(["iptables", "-t", "nat", "-A", "OUTPUT", "-m", "owner", "--uid-owner", "%s" % self.tor_uid, "-j", "RETURN"]) call(["iptables", "-t", "nat", "-A", "OUTPUT", "-p", "udp", "--dport", - self.local_dnsport, "-j", "REDIRECT", "--to-ports", self.local_dnsport - ]) + self.local_dnsport, "-j", "REDIRECT", "--to-ports", self.local_dnsport]) for net in self.non_tor: call(["iptables", "-t", "nat", "-A", "OUTPUT", "-d", "%s" % net, "-j",