From 87bc467335c9f8a80a7a59e9d1ea93905a89cc00 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Mon, 3 Jun 2013 20:29:47 +0800 Subject: [PATCH] no more dns proxy option --- src/main/res/xml/pref_feature.xml | 6 ------ .../shadowsocks/ShadowsocksService.scala | 11 +++-------- .../scala/com/github/shadowsocks/Utils.scala | 19 +++---------------- 3 files changed, 6 insertions(+), 30 deletions(-) diff --git a/src/main/res/xml/pref_feature.xml b/src/main/res/xml/pref_feature.xml index 866d9046..4eaff493 100755 --- a/src/main/res/xml/pref_feature.xml +++ b/src/main/res/xml/pref_feature.xml @@ -1,12 +1,6 @@ - - "s.maxcdn.info" case s: String => s @@ -153,8 +143,7 @@ object Extra { } } val localProt: Int = try { - val p = Integer.valueOf(settings.getString(Key.localPort, "1984")) - if (isHTTPProxy) p - 1 else p + Integer.valueOf(settings.getString(Key.localPort, "1984")) } catch { case ex: NumberFormatException => { 1984 @@ -164,8 +153,6 @@ object Extra { intent.putExtra(Key.isGlobalProxy, isGlobalProxy) intent.putExtra(Key.isGFWList, isGFWList) intent.putExtra(Key.isBypassApps, isBypassApps) - intent.putExtra(Key.isDNSProxy, isDNSProxy) - intent.putExtra(Key.isHTTPProxy, isHTTPProxy) intent.putExtra(Key.proxy, proxy) intent.putExtra(Key.sitekey, sitekey)