[BUG] Fix #210 Duplicating KCPTUN enabled profiles does not copy KCPTUN related settings

This commit is contained in:
Charlie Qiu
2017-01-17 01:42:05 +08:00
parent 59f914febe
commit d4aa0f7b47
2 changed files with 5 additions and 1 deletions

View File

@ -101,6 +101,9 @@ class ServerProfile: NSObject, NSCopying {
copy.password = self.password
copy.remark = self.remark
copy.ota = self.ota
copy.enabledKcptun = self.enabledKcptun
copy.kcptunProfile = self.kcptunProfile.copy() as! KcptunProfile
return copy;
}