diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2021-10-08 11:55:15 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-11-23 21:51:20 +0100 |
commit | ef683e13aaefebd9cd1f267d5339e1ef574c42d0 (patch) | |
tree | a1e8460fe872fa72750e285101fbdf7d70b92531 /helpers | |
parent | 49755a3271a19ab8e441406c7095e283a2d6241e (diff) |
[feat] pass udp flag to bitmask-root
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/bitmask-root | 9 |
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" |