Skip to content

Commit

Permalink
Add termux support
Browse files Browse the repository at this point in the history
The `ip` binary for termux is located at
`/data/data/com.termux/files/usr/bin/ip`

Signed-off-by: Ammar Faizi <[email protected]>
  • Loading branch information
ammarfaizi2 committed Mar 18, 2021
1 parent fe98e60 commit d1a9999
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/teavpn2/net/iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit d1a9999

Please sign in to comment.