Skip to content

Commit 0a400ef

Browse files
committed
Trim the KCP parameters
1 parent cda3650 commit 0a400ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/main/scala/com/github/shadowsocks/ShadowsocksNatService.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class ShadowsocksNatService extends BaseService {
122122
cmd += (getApplicationInfo.dataDir + "/kcptun"
123123
, "-r", profile.host + ":" + profile.kcpPort
124124
, "-l", "127.0.0.1:" + (profile.localPort + 90)
125-
, profile.kcpcli)
125+
, profile.kcpcli.trim)
126126

127127
if (BuildConfig.DEBUG) Log.d(TAG, cmd.mkString(" "))
128128

Diff for: src/main/scala/com/github/shadowsocks/ShadowsocksVpnService.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class ShadowsocksVpnService extends VpnService with BaseService {
211211
, "-r", profile.host + ":" + profile.kcpPort
212212
, "-l", "127.0.0.1:" + (profile.localPort + 90)
213213
, "--path", getApplicationInfo.dataDir + "/protect_path"
214-
, profile.kcpcli)
214+
, profile.kcpcli.trim)
215215

216216
if (BuildConfig.DEBUG)
217217
Log.d(TAG, cmd.mkString(" "))

0 commit comments

Comments
 (0)