From 0a400ef5f90e88347df15497c1b5ce8805578511 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Tue, 9 Aug 2016 12:27:32 +0800 Subject: [PATCH] Trim the KCP parameters --- .../scala/com/github/shadowsocks/ShadowsocksNatService.scala | 2 +- .../scala/com/github/shadowsocks/ShadowsocksVpnService.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/com/github/shadowsocks/ShadowsocksNatService.scala b/src/main/scala/com/github/shadowsocks/ShadowsocksNatService.scala index ec937831..46c8e06a 100644 --- a/src/main/scala/com/github/shadowsocks/ShadowsocksNatService.scala +++ b/src/main/scala/com/github/shadowsocks/ShadowsocksNatService.scala @@ -122,7 +122,7 @@ class ShadowsocksNatService extends BaseService { cmd += (getApplicationInfo.dataDir + "/kcptun" , "-r", profile.host + ":" + profile.kcpPort , "-l", "127.0.0.1:" + (profile.localPort + 90) - , profile.kcpcli) + , profile.kcpcli.trim) if (BuildConfig.DEBUG) Log.d(TAG, cmd.mkString(" ")) diff --git a/src/main/scala/com/github/shadowsocks/ShadowsocksVpnService.scala b/src/main/scala/com/github/shadowsocks/ShadowsocksVpnService.scala index 479c8f11..d58c5c66 100644 --- a/src/main/scala/com/github/shadowsocks/ShadowsocksVpnService.scala +++ b/src/main/scala/com/github/shadowsocks/ShadowsocksVpnService.scala @@ -211,7 +211,7 @@ class ShadowsocksVpnService extends VpnService with BaseService { , "-r", profile.host + ":" + profile.kcpPort , "-l", "127.0.0.1:" + (profile.localPort + 90) , "--path", getApplicationInfo.dataDir + "/protect_path" - , profile.kcpcli) + , profile.kcpcli.trim) if (BuildConfig.DEBUG) Log.d(TAG, cmd.mkString(" "))