Skip to content

Commit

Permalink
Make available CDNWsUrlPath option
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeuw committed Mar 22, 2023
1 parent 662a63b commit b59c405
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ConfigFragment : PreferenceFragmentCompat() {
this.options = options
val ary = arrayOf(Pair("ProxyMethod","shadowsocks"), Pair("EncryptionMethod","plain"),
Pair("Transport", "direct"), Pair("UID", ""), Pair("PublicKey",""), Pair("ServerName", "bing.com"),
Pair("AlternativeNames", ""), Pair("CDNOriginHost", ""), Pair("NumConn","4"),
Pair("AlternativeNames", ""), Pair("CDNOriginHost", ""), Pair("CDNWsUrlPath", ""), Pair("NumConn","4"),
Pair("BrowserSig", "chrome"), Pair("StreamTimeout","300"), Pair("KeepAlive", "0"))
for (element in ary) {
val key = element.first
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<string name="cloak_server_name">Server Name</string>
<string name="cloak_alternative_names">Alternative Names (comma separated)</string>
<string name="cloak_cdn_origin_host">CDN mode HTTP Origin Override</string>
<string name="cloak_cdn_ws_url_path">CDN mode WebSocket URL Path</string>
<string name="cloak_uid">UID</string>
<string name="cloak_public_key">Public Key</string>
<string name="cloak_num_conn">Number of Connections</string>
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/xml/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
android:key="CDNOriginHost"
android:persistent="false"
android:title="@string/cloak_cdn_origin_host" />
<EditTextPreference
android:key="CDNWsUrlPath"
android:persistent="false"
android:title="@string/cloak_cdn_ws_url_path" />
<ListPreference
android:key="BrowserSig"
android:persistent="false"
Expand Down

0 comments on commit b59c405

Please sign in to comment.