mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix https://github.com/Ysurac/openmptcprouter/issues/3646 Shadowsocks-Rust ss_tunnel
This commit is contained in:
parent
2e1d9b7207
commit
4df5fb7360
5 changed files with 23 additions and 7 deletions
|
@ -127,6 +127,14 @@ if [ -z "$(uci -q get shadowsocks-rust.hi1.keep_alive)" ]; then
|
|||
commit shadowsocks-rust
|
||||
EOF
|
||||
fi
|
||||
if [ -z "$(uci -q get shadowsocks-rust.dns.forward_address)" ]; then
|
||||
uci -q batch <<-EOF > /dev/null
|
||||
set shadowsocks-rust.dns.forward_address="8.8.8.8"
|
||||
set shadowsocks-rust.dns.forward_port=53
|
||||
del shadowsocks-rust.dns.tunnel_address
|
||||
commit shadowsocks-rust
|
||||
EOF
|
||||
fi
|
||||
|
||||
rm -f /tmp/luci-indexcache
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue