diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2021-05-13 13:06:36 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-05-17 17:52:43 +0200 |
commit | b5b55b0b54588ad95d66fc7acfab0b9cb76c93e6 (patch) | |
tree | ae4b9c5e286c9e6dd544b88d7b9fb6e0c531b3b0 | |
parent | de23c5e6b840b18450096f4b3f23b3142eaa5a89 (diff) |
allow route command, needed for obfs4
-rw-r--r-- | helpers/bitmask-root | 2 |
1 files changed, 2 insertions, 0 deletions
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) } |