1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00
This commit is contained in:
Ycarus (Yannick Chabanois) 2024-11-12 11:43:19 +01:00
parent 2e1d9b7207
commit 4df5fb7360
5 changed files with 23 additions and 7 deletions

View file

@ -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