Skip to content

Commit 4f38bed

Browse files
authored
Update shadowsocks-rust to 1.9.0 (#2622)
1 parent 1bb482e commit 4f38bed

File tree

6 files changed

+15
-14
lines changed

6 files changed

+15
-14
lines changed

.circleci/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ jobs:
77
environment:
88
GRADLE_OPTS: -Dorg.gradle.workers.max=1 -Dorg.gradle.daemon=false -Dkotlin.compiler.execution.strategy="in-process"
99
steps:
10+
- run: rustup toolchain install nightly-2020-12-20
11+
- run: rustup override set nightly-2020-12-20
12+
- run: rustup target install armv7-linux-androideabi aarch64-linux-android i686-linux-android x86_64-linux-android
1013
- checkout
1114
- run: git submodule update --init --recursive
1215
- restore_cache:

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ for Android TV ([beta](https://play.google.com/apps/testing/com.github.shadowsoc
1919
* Android SDK
2020
- Android NDK
2121
* Rust with Android targets installed
22-
`$ rustup target install armv7-linux-androideabi aarch64-linux-android i686-linux-android x86_64-linux-android`
22+
23+
```bash
24+
$ rustup toolchain install nightly-2020-12-20
25+
$ rustup override set nightly-2020-12-20
26+
$ rustup target install armv7-linux-androideabi aarch64-linux-android i686-linux-android x86_64-linux-android
27+
```
2328

2429
### BUILD
2530

buildSrc/src/main/kotlin/Helpers.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ fun Project.setupCore() {
5656
setupCommon()
5757
android.apply {
5858
defaultConfig {
59-
versionCode = 5010750
60-
versionName = "5.1.7-nightly"
59+
versionCode = 5010850
60+
versionName = "5.1.8-nightly"
6161
}
6262
compileOptions.isCoreLibraryDesugaringEnabled = true
6363
lintOptions {

core/build.gradle.kts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,9 @@ cargo {
3838
profile = findProperty("CARGO_PROFILE")?.toString() ?: currentFlavor
3939
extraCargoBuildArguments = listOf("--bin", libname!!)
4040
featureSpec.noDefaultBut(arrayOf(
41-
"ring-aead-ciphers",
42-
"sodium",
43-
"rc4",
44-
"aes-cfb",
45-
"aes-ctr",
46-
"camellia-cfb",
47-
"openssl-vendored",
4841
"single-threaded",
4942
"local-flow-stat",
50-
"local-dns-relay"))
43+
"local-dns"))
5144
exec = { spec, toolchain ->
5245
spec.environment("RUST_ANDROID_GRADLE_LINKER_WRAPPER_PY", "$projectDir/$module/../linker-wrapper.py")
5346
spec.environment("RUST_ANDROID_GRADLE_TARGET", "target/${toolchain.target}/$profile/lib$libname.so")

core/src/main/java/com/github/shadowsocks/bg/ProxyInstance.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ class ProxyInstance(val profile: Profile, private val route: String = profile.ro
9090
throw BaseService.ExpectedExceptionWrapper(e)
9191
}.let { dns ->
9292
cmd += arrayListOf(
93-
"--dns-relay", "${DataStore.listenAddress}:${DataStore.portLocalDns}",
94-
"--remote-dns", "${dns.host ?: "0.0.0.0"}:${if (dns.port < 0) 53 else dns.port}")
93+
"--dns-addr", "${DataStore.listenAddress}:${DataStore.portLocalDns}",
94+
"--remote-dns-addr", "${dns.host ?: "0.0.0.0"}:${if (dns.port < 0) 53 else dns.port}")
9595
}
9696

9797
if (route != Acl.ALL) {

core/src/main/rust/shadowsocks-rust

Submodule shadowsocks-rust updated 226 files

0 commit comments

Comments
 (0)