From daa4ef64f6c0000c1154315f00842651433d1eeb Mon Sep 17 00:00:00 2001 From: qinyuhang Date: Sun, 8 Jan 2017 22:59:52 +0800 Subject: [PATCH] fix wrong key in json import --- ShadowsocksX-NG/ServerProfileManager.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ShadowsocksX-NG/ServerProfileManager.swift b/ShadowsocksX-NG/ServerProfileManager.swift index b523b42..4f9f9b0 100644 --- a/ShadowsocksX-NG/ServerProfileManager.swift +++ b/ShadowsocksX-NG/ServerProfileManager.swift @@ -107,8 +107,8 @@ class ServerProfileManager: NSObject { if (item["obfsparam"] != nil){ profile.ssrObfsParam = item["obfsparam"] as! String } - if (item["protoparam"] != nil){ - profile.ssrProtocolParam = item["protoparam"] as! String + if (item["protocolparam"] != nil){ + profile.ssrProtocolParam = item["protocolparam"] as! String } } self.profiles.append(profile) @@ -163,7 +163,7 @@ class ServerProfileManager: NSObject { configProfile.setValue(profile.ssrObfsParam, forKey: "obfsparam") } if profile.ssrProtocolParam != "" { - configProfile.setValue(profile.ssrProtocolParam, forKey: "protoparam") + configProfile.setValue(profile.ssrProtocolParam, forKey: "protocolparam") } } if profile.ssrGroup != "" {