Commit 7491a667 authored by Mygod's avatar Mygod

Fix ss-tunnel local port

parent 1041dc37
...@@ -77,7 +77,7 @@ class ShadowsocksNatService extends BaseService { ...@@ -77,7 +77,7 @@ class ShadowsocksNatService extends BaseService {
, "-l" , (profile.localPort + 53).toString , "-l" , (profile.localPort + 53).toString
, "-L" , if (profile.remoteDns == null) "8.8.8.8:53" else profile.remoteDns + ":53" , "-L" , if (profile.remoteDns == null) "8.8.8.8:53" else profile.remoteDns + ":53"
, "-P", getApplicationInfo.dataDir , "-P", getApplicationInfo.dataDir
, "-c" , buildShadowsocksConfig(getApplicationInfo.dataDir + "/ss-tunnel-nat.conf", 53)) , "-c" , buildShadowsocksConfig(getApplicationInfo.dataDir + "/ss-tunnel-nat.conf", 63))
if (profile.udpdns) cmd.append("-u") if (profile.udpdns) cmd.append("-u")
......
...@@ -193,7 +193,7 @@ class ShadowsocksVpnService extends VpnService with BaseService { ...@@ -193,7 +193,7 @@ class ShadowsocksVpnService extends VpnService with BaseService {
, "-b", "127.0.0.1" , "-b", "127.0.0.1"
, "-L" , if (profile.remoteDns == null) "8.8.8.8:53" else profile.remoteDns + ":53" , "-L" , if (profile.remoteDns == null) "8.8.8.8:53" else profile.remoteDns + ":53"
, "-P", getApplicationInfo.dataDir , "-P", getApplicationInfo.dataDir
, "-c", buildShadowsocksConfig(getApplicationInfo.dataDir + "/ss-tunnel-vpn.conf", 53)) , "-c", buildShadowsocksConfig(getApplicationInfo.dataDir + "/ss-tunnel-vpn.conf", 63))
if (BuildConfig.DEBUG) Log.d(TAG, Commandline.toString(cmd)) if (BuildConfig.DEBUG) Log.d(TAG, Commandline.toString(cmd))
sstunnelProcess = new GuardedProcess(cmd).start() sstunnelProcess = new GuardedProcess(cmd).start()
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment