mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Various fix for IPv6, disable Shadowsocks for IPv6 with ss-redir
This commit is contained in:
parent
0ef3754412
commit
5b10fe3bd5
8 changed files with 58 additions and 15 deletions
|
@ -364,6 +364,9 @@ _set_config_from_vps() {
|
|||
# Check if server get an IPv6, if not disable IPv6 on OMR
|
||||
vps_ipv6_addr="$(echo "$vps_config" | jsonfilter -q -e '@.network.ipv6')"
|
||||
if [ -z "$vps_ipv6_addr" ]; then
|
||||
if [ "$(uci -q get openmptcprouter.settings.disable_ipv6)" = "0" ]; then
|
||||
logger -t "OMR-VPS" "No IPv6 support on VPS side. IPv6 disabled."
|
||||
fi
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set openmptcprouter.settings.disable_ipv6=1
|
||||
EOF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue