From ba4adbf97c37f85693fec62f68da8f560e5a55f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E7=A1=AE=E5=AE=9A?= <35424927+notsure2@users.noreply.github.com> Date: Sat, 12 Dec 2020 22:41:31 +0200 Subject: [PATCH] Add CdnHttpHost config option. (#16) * Add CdnHttpHost config option. * Rename CdnHttpHost to CDNOriginHost --- .../com/github/shadowsocks/plugin/ck_client/ConfigFragment.kt | 4 ++-- app/src/main/res/values/strings.xml | 1 + app/src/main/res/xml/config.xml | 4 ++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/github/shadowsocks/plugin/ck_client/ConfigFragment.kt b/app/src/main/java/com/github/shadowsocks/plugin/ck_client/ConfigFragment.kt index 67c18d6..35dc986 100644 --- a/app/src/main/java/com/github/shadowsocks/plugin/ck_client/ConfigFragment.kt +++ b/app/src/main/java/com/github/shadowsocks/plugin/ck_client/ConfigFragment.kt @@ -17,8 +17,8 @@ class ConfigFragment : PreferenceFragment() { this._options = options val ary = arrayOf(Pair("ProxyMethod","shadowsocks"), Pair("EncryptionMethod","plain"), Pair("Transport", "direct"), Pair("UID", ""), Pair("PublicKey",""), Pair("ServerName", "bing.com"), - Pair("NumConn","4"), Pair("BrowserSig", "chrome"), Pair("StreamTimeout","300"), - Pair("KeepAlive", "0")) + Pair("CDNOriginHost", ""), Pair("NumConn","4"), Pair("BrowserSig", "chrome"), + Pair("StreamTimeout","300"), Pair("KeepAlive", "0")) for (element in ary) { val key = element.first val defaultValue = element.second diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 3f7a7c6..26d8ba4 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,6 +1,7 @@ Cloak Server Name + CDN mode HTTP Origin Override UID Public Key Number of Connections diff --git a/app/src/main/res/xml/config.xml b/app/src/main/res/xml/config.xml index 2681cb0..c64e498 100644 --- a/app/src/main/res/xml/config.xml +++ b/app/src/main/res/xml/config.xml @@ -25,6 +25,10 @@ android:key="ServerName" android:persistent="false" android:title="@string/cloak_server_name" /> +