Fix incorrect handling of default values on database upgrade

This commit is contained in:
Mygod
2016-08-09 04:34:51 +08:00
parent 3cc1a1602e
commit 984e75ae99
4 changed files with 13 additions and 9 deletions
@@ -204,6 +204,8 @@ class ShadowsocksVpnService extends VpnService with BaseService {
}
def startKcptunDaemon() {
if (profile.kcpcli == null) profile.kcpcli = ""
val cmd = new ArrayBuffer[String]
cmd += (getApplicationInfo.dataDir + "/kcptun"
, "-r", profile.host + ":" + profile.kcpPort