Skip to content

Commit

Permalink
chore: updated init script and README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kuoruan committed Oct 29, 2019
1 parent e2ed1b6 commit 5a9832a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Depends:
- ip
- iptables
- iptables-mod-tproxy
- resolveip

For translations, please install ```luci-i18n-v2ray-*```.

Expand Down
4 changes: 2 additions & 2 deletions root/etc/init.d/v2ray
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ add_v2ray_rules() {
2001:db8::/32
2002::/16
fc00::/7
203.0.113.0/24
fe80::/10
ff00::/8
EOF
Expand Down Expand Up @@ -763,7 +762,8 @@ add_outbound_setting() {

if [ -n "$TRANSPARENT_PROXY_ENABLED" ] ; then
local addr
for addr in $(echo "$settings_commands" | sed -n "s/^json.*'address'[[:space:]]'\([^']*\)'.*/\1/p") ; do
for addr in $(echo "$settings_commands" | \
sed -n "s/^json.*'address'[[:space:]]'\([^']*\)'.*/\1/p") ; do
local ipv4
for ipv4 in $(resolveip -4 -t 5 "$addr") ; do
append_server_ipv4 "$ipv4"
Expand Down

0 comments on commit 5a9832a

Please sign in to comment.