Browse Source

Merge pull request #1682 from zxlhhyccc/NetFlix

luci-app-ssr-plus: remove `Netflix` shunt not use `mixed`
coolsnowwolf 8 tháng trước cách đây
mục cha
commit
ef1da49341
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      luci-app-ssr-plus/root/etc/init.d/shadowsocksr

+ 3 - 1
luci-app-ssr-plus/root/etc/init.d/shadowsocksr

@@ -549,7 +549,9 @@ shunt_dns_config_file_port() {
         if [ "$(uci_get_by_type socks5_proxy socks5_auth nil)" != "noauth" ]; then
             # 全局socks 有密码,NetFlix不能使用auth验证,需设置为无密码的socks配置用于分流
             # 删除 NetFlix dns 端口密码验证
-            sed -i -e 's/"auth"\s*:\s*"password"/\"auth\": \"noauth\"/g' \
+            sed -i \
+                   -e '/"mixed"/d' \
+                   -e 's/"auth"\s*:\s*"password"/\"auth\": \"noauth\"/g' \
                    -e '/"accounts": \[/,/\]/d' $shunt_config_file
         fi
     fi