소스 검색

Omit UpstreamProxyError notices from Android diagnostics

- For consistency with iOS/Windows

- Network addresses are already stripped from upstream
  proxy errors
Rod Hynes 5 년 전
부모
커밋
bf80f14379
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      MobileLibrary/Android/PsiphonTunnel/PsiphonTunnel.java

+ 1 - 0
MobileLibrary/Android/PsiphonTunnel/PsiphonTunnel.java

@@ -937,6 +937,7 @@ public class PsiphonTunnel {
                 int port = notice.getJSONObject("data").getInt("port");
                 int port = notice.getJSONObject("data").getInt("port");
                 mHostService.onListeningHttpProxyPort(port);
                 mHostService.onListeningHttpProxyPort(port);
             } else if (noticeType.equals("UpstreamProxyError")) {
             } else if (noticeType.equals("UpstreamProxyError")) {
+                diagnostic = false;
                 mHostService.onUpstreamProxyError(notice.getJSONObject("data").getString("message"));
                 mHostService.onUpstreamProxyError(notice.getJSONObject("data").getString("message"));
             } else if (noticeType.equals("ClientUpgradeDownloaded")) {
             } else if (noticeType.equals("ClientUpgradeDownloaded")) {
                 mHostService.onClientUpgradeDownloaded(notice.getJSONObject("data").getString("filename"));
                 mHostService.onClientUpgradeDownloaded(notice.getJSONObject("data").getString("filename"));