|
|
@@ -536,7 +536,7 @@ public class PsiphonTunnel extends Psi.PsiphonProvider.Stub {
|
|
|
|
|
|
json.put("EmitBytesTransferred", true);
|
|
|
|
|
|
- if (mLocalSocksProxyPort.get() != 0 && !json.has("LocalSocksProxyPort")) {
|
|
|
+ if (mLocalSocksProxyPort.get() != 0 && (!json.has("LocalSocksProxyPort") || json.getInt("LocalSocksProxyPort") == 0)) {
|
|
|
// When mLocalSocksProxyPort is set, tun2socks is already configured
|
|
|
// to use that port value. So we force use of the same port.
|
|
|
// A side-effect of this is that changing the SOCKS port preference
|