Просмотр исходного кода

Disable in-proxy activity statistics in PsiphonTunnel by default

- Added comment for enabling in-proxy proxy activity in PsiphonTunnel.java and PsiphonTunnel.h.
- Removed default setting of EmitInproxyProxyActivity from PsiphonTunnel.java.
efryntov 1 год назад
Родитель
Сommit
ae0f02e81a

+ 2 - 3
MobileLibrary/Android/PsiphonTunnel/PsiphonTunnel.java

@@ -139,6 +139,8 @@ public class PsiphonTunnel {
 
         /**
          * Called when tunnel-core reports proxy usage statistics.
+         * By default onInproxyProxyActivity is disabled. Enable it by setting
+         * EmitInproxyProxyActivity to true in the Psiphon config.
          * @param connectingClients Number of clients connecting to the proxy.
          * @param connectedClients Number of clients currently connected to the proxy.
          * @param bytesUp  Bytes uploaded through the proxy since the last report.
@@ -965,9 +967,6 @@ public class PsiphonTunnel {
 
         json.put("EmitBytesTransferred", true);
 
-        // Emit in-proxy activity stats
-        json.put("EmitInproxyProxyActivity", true);
-
         if (localSocksProxyPort != 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.

+ 2 - 0
MobileLibrary/iOS/PsiphonTunnel/PsiphonTunnel/PsiphonTunnel.h

@@ -308,6 +308,8 @@ WWAN or vice versa or VPN state changed
 
 /*!
  Called when tunnel-core reports in-proxy usage statistics
+ By default onInproxyProxyActivity is disabled. Enable it by setting
+ EmitInproxyProxyActivity to true in the Psiphon config.
  @param connectingClients Number of clients connecting to the proxy.
  @param connectedClients Number of clients currently connected to the proxy.
  @param bytesUp Bytes uploaded through the proxy since the last report.