summaryrefslogtreecommitdiff
path: root/helpers/bitmask-root
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/bitmask-root')
-rw-r--r--helpers/bitmask-root9
1 files changed, 6 insertions, 3 deletions
diff --git a/helpers/bitmask-root b/helpers/bitmask-root
index 929e0f9..ed0fe8e 100644
--- a/helpers/bitmask-root
+++ b/helpers/bitmask-root
@@ -89,12 +89,15 @@ def is_ipv6_disabled():
def tostr(s):
return s.decode('utf-8')
-VERSION = "14"
+VERSION = "15"
SCRIPT = "bitmask-root"
NAMESERVER_TCP = "10.41.0.1"
NAMESERVER_UDP = "10.42.0.1"
-# for the time being, we're hardcoding tcp on connection params.
-NAMESERVER = NAMESERVER_TCP
+
+if os.getenv("UDP") == "1":
+ NAMESERVER = NAMESERVER_UDP
+else:
+ NAMESERVER = NAMESERVER_TCP
BITMASK_CHAIN = "bitmask"
BITMASK_CHAIN_NAT_OUT = "bitmask"
BITMASK_CHAIN_NAT_POST = "bitmask_postrouting"