diff --git a/src/main/scala/com/github/shadowsocks/ShadowsocksNatService.scala b/src/main/scala/com/github/shadowsocks/ShadowsocksNatService.scala index 320d79d7..5743f41b 100644 --- a/src/main/scala/com/github/shadowsocks/ShadowsocksNatService.scala +++ b/src/main/scala/com/github/shadowsocks/ShadowsocksNatService.scala @@ -136,11 +136,16 @@ class ShadowsocksNatService extends BaseService { , "-u" , "-t" , "10" , "-b" , "127.0.0.1" - , "-L" , "8.8.8.8:53" , "-l" , (profile.localPort + 53).toString , "-P" , getApplicationInfo.dataDir , "-c" , getApplicationInfo.dataDir + "/ss-tunnel-nat.conf") + cmd += "-L" + if (profile.route == Route.CHINALIST) + cmd += "114.114.114.114:53" + else + cmd += "8.8.8.8:53" + if (profile.auth) cmd += "-A" if (BuildConfig.DEBUG) Log.d(TAG, cmd.mkString(" ")) diff --git a/src/main/scala/com/github/shadowsocks/ShadowsocksVpnService.scala b/src/main/scala/com/github/shadowsocks/ShadowsocksVpnService.scala index b111b851..81a3de4e 100644 --- a/src/main/scala/com/github/shadowsocks/ShadowsocksVpnService.scala +++ b/src/main/scala/com/github/shadowsocks/ShadowsocksVpnService.scala @@ -284,10 +284,15 @@ class ShadowsocksVpnService extends VpnService with BaseService { , "-V" , "-t", "10" , "-b", "127.0.0.1" - , "-L", "8.8.8.8:53" , "-P", getApplicationInfo.dataDir , "-c", getApplicationInfo.dataDir + "/ss-tunnel-vpn.conf") + cmd += "-L" + if (profile.route == Route.CHINALIST) + cmd += "114.114.114.114:53" + else + cmd += "8.8.8.8:53" + if (profile.auth) cmd += "-A" if (BuildConfig.DEBUG) Log.d(TAG, cmd.mkString(" "))