From b5b55b0b54588ad95d66fc7acfab0b9cb76c93e6 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Thu, 13 May 2021 13:06:36 +0200 Subject: allow route command, needed for obfs4 --- helpers/bitmask-root | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helpers/bitmask-root b/helpers/bitmask-root index 054613a..6615d3b 100644 --- a/helpers/bitmask-root +++ b/helpers/bitmask-root @@ -144,6 +144,7 @@ ALLOWED_FLAGS = { "--auth": ["CIPHER"], "--management": ["DIR||IP", "UNIXSOCKET||NUMBER"], "--management-client-user": ["USER"], + "--route": ["IP", "IP", "NETGW"], "--cert": ["FILE"], "--key": ["FILE"], "--ca": ["FILE"], @@ -164,6 +165,7 @@ PARAM_FORMATS = { "FILE": lambda s: os.path.isfile(s), "DIR": lambda s: os.path.isdir(os.path.split(s)[0]), "UNIXSOCKET": lambda s: s == "unix", + "NETGW": lambda s: s == "net_gateway", "UID": lambda s: re.match("^[a-zA-Z0-9]+$", s) } -- cgit v1.2.3