From d1a999952ca44210a904d4061529615334a3b032 Mon Sep 17 00:00:00 2001 From: Ammar Faizi Date: Thu, 18 Mar 2021 13:43:28 +0700 Subject: [PATCH] Add termux support The `ip` binary for termux is located at `/data/data/com.termux/files/usr/bin/ip` Signed-off-by: Ammar Faizi --- src/teavpn2/net/iface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/teavpn2/net/iface.c b/src/teavpn2/net/iface.c index d3462788..265219e5 100644 --- a/src/teavpn2/net/iface.c +++ b/src/teavpn2/net/iface.c @@ -35,7 +35,8 @@ static __always_inline const char *find_ip_cmd(void) "/usr/bin/ip", "/usr/sbin/ip", "/usr/local/bin/ip", - "/usr/local/sbin/ip" + "/usr/local/sbin/ip", + "/data/data/com.termux/files/usr/bin/ip" }; for (size_t i = 0; i < (sizeof(ip_bin) / sizeof(*ip_bin)); i++) {