From ef683e13aaefebd9cd1f267d5339e1ef574c42d0 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Fri, 8 Oct 2021 11:55:15 +0200 Subject: [feat] pass udp flag to bitmask-root --- helpers/bitmask-root | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'helpers') 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" -- cgit v1.2.3