Skip to content

Commit

Permalink
Bump version 5.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrlive committed Feb 11, 2024
1 parent 4752ef0 commit fd6debb
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ ext {
sdkVersion = 33
compileSdkVersion = 33
buildToolsVersion = '31.0.0'
versionCode = 530
versionName = '5.3.0'
versionCode = 531
versionName = '5.3.1'
resConfigs = ['zh-rCN']
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ object OverTlsWrapper {
}

@JvmStatic
external fun runClient(vpnService: VpnService, cofigPath: String, statPath: String, verbose: Boolean): Int
external fun runClient(vpnService: VpnService, cofigPath: String, statPath: String, verbosity: Int): Int

@JvmStatic
external fun stopClient(): Int
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ class ProxyInstance(val profile: Profile, private val route: String = profile.ro
override fun run() {
super.run()
if (isOverTls) {
vpnService?.let { OverTlsWrapper.runClient(it, configPath(), statPath(), verbose()) }
val verbosity = if (verbose()) 5 else 3
vpnService?.let { OverTlsWrapper.runClient(it, configPath(), statPath(), verbosity) }
} else {
cmd?.let { SsrClientWrapper.runSsrClient(it) }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ class SsrVpnService : VpnService(), LocalDnsService.Interface {
private val dnsOverTcp: Boolean
) : Thread() {
override fun run() {
Tun2proxy.run(proxyUrl, tunFd, tunMtu, verbose, dnsOverTcp)
val verbosity = if (verbose) 5 else 3
val dnsStrategy = if (dnsOverTcp) 1 else 2
Tun2proxy.run(proxyUrl, tunFd, tunMtu.toChar(), verbosity, dnsStrategy)
}

fun terminate() {
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/com/github/shadowsocks/bg/Tun2proxy.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ object Tun2proxy {
}

@JvmStatic
external fun run(proxyUrl: String, tunFd: Int, tunMtu: Int, verbose: Boolean, dnsOverTcp: Boolean): Int
external fun run(proxyUrl: String, tunFd: Int, tunMtu: Char, verbosity: Int, dnsStrategy: Int): Int

@JvmStatic
external fun stop(): Int
Expand Down
2 changes: 1 addition & 1 deletion rust/tun2proxy

0 comments on commit fd6debb

Please sign in to comment.