Skip to content

Commit

Permalink
Fixed #80 : changed proxy settings from "localhost" to "127.0.0.1"
Browse files Browse the repository at this point in the history
  • Loading branch information
Neraud committed May 2, 2015
1 parent 243bab9 commit 51f59f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void activateAutoProxy() throws Exception {

final WifiConfigHelper helper = getWifiConfigHelper();
try {
helper.modifyWifiProxySettings("localhost", 8008);
helper.modifyWifiProxySettings("127.0.0.1", 8008);
} catch (final Exception e) {
throw new Exception("Error activating auto proxy", e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private Notification buildNotification(ProxyMode proxyMode) {
final String modeLabel = getString(proxyMode.getLabelResId());
final String notifTitle = getString(R.string.notification_listener_title, modeLabel);

String proxyUrl = "localhost:8008";
String proxyUrl = "127.0.0.1:8008";
final DefaultSharedPreferencesHelper prefHelper = new DefaultSharedPreferencesHelper(getApplicationContext());
if (prefHelper.isListenerNonLocalEnabled()) {
final WifiHelper wifiHelper = new WifiHelper(getApplicationContext());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void updateState(SwitchListenerTaskFragment.ListenerState state, SwitchLi
forceToggledWithoutListener(true);
mListenerStatus.setText(generateStatusStartedText());

String proxyUrl = "localhost:8008";
String proxyUrl = "127.0.0.1:8008";
final DefaultSharedPreferencesHelper prefHelper = new DefaultSharedPreferencesHelper(getActivity());
if (prefHelper.isListenerNonLocalEnabled()) {
final WifiHelper wifiHelper = new WifiHelper(getActivity());
Expand Down

0 comments on commit 51f59f0

Please sign in to comment.