[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [orbot/master] use constants for setting default ports, and variables when running



commit 0937c8838fe49cdc970fb995f72c5c375b799098
Author: Hans-Christoph Steiner <hans@xxxxxxx>
Date:   Thu Jun 11 16:32:31 2015 -0400

    use constants for setting default ports, and variables when running
---
 src/org/torproject/android/service/TorService.java |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/org/torproject/android/service/TorService.java b/src/org/torproject/android/service/TorService.java
index 018adb2..46b55ae 100644
--- a/src/org/torproject/android/service/TorService.java
+++ b/src/org/torproject/android/service/TorService.java
@@ -93,8 +93,8 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon
     private int mLastProcessId = -1;
     
 
-    private int mPortHTTP = 8118;
-    private int mPortSOCKS = 9050;
+    private int mPortHTTP = HTTP_PROXY_PORT_DEFAULT;
+    private int mPortSOCKS = SOCKS_PROXY_PORT_DEFAULT;
     
     private static final int NOTIFY_ID = 1;
     private static final int TRANSPROXY_NOTIFY_ID = 2;
@@ -1077,7 +1077,7 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon
                 logNotice(log.toString());
             }
             
-            sendCallbackLogMessage(getString(R.string.privoxy_is_running_on_port_) + PORT_HTTP);
+            sendCallbackLogMessage(getString(R.string.privoxy_is_running_on_port_) + mPortHTTP);
             
             logNotice("Polipo process id=" + polipoProcId);
             



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits