Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Commit 650d55f

Browse files
committed
Add IP address getter updates to new wrapper
1 parent 6a1ad61 commit 650d55f

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

data/scripts/run-http-proxy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ done
88

99
proxy_config_file=config/http-proxy.conf
1010

11-
addr_eth0=$(ip address show eth0 | grep 'inet' | awk '{split($2, inet, "/"); print inet[1]}')
12-
addr_tun0=$(ip address show tun0 | grep 'inet' | awk '{split($2, inet, "/"); print inet[1]}')
11+
addr_eth0=$(ip address show eth0 | grep 'inet ' | awk '{split($2, inet, "/"); print inet[1]}')
12+
addr_tun0=$(ip address show tun0 | grep 'inet ' | awk '{split($2, inet, "/"); print inet[1]}')
1313
sed -i \
1414
-e "/Listen/c Listen $addr_eth0" \
1515
-e "/Bind/c Bind $addr_tun0" \

data/scripts/tinyproxy_wrapper.sh

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)