Fix bug.
This commit is contained in:
@ -151,7 +151,9 @@ func SyncSSLocal() {
|
||||
changed = changed || generateSSLocalLauchAgentPlist()
|
||||
let mgr = ServerProfileManager.instance
|
||||
if mgr.activeProfileId != nil {
|
||||
changed = changed || writeSSLocalConfFile((mgr.getActiveProfile()?.toJsonConfig())!)
|
||||
if let profile = mgr.getActiveProfile() {
|
||||
changed = changed || writeSSLocalConfFile((profile.toJsonConfig()))
|
||||
}
|
||||
|
||||
let on = UserDefaults.standard.bool(forKey: "ShadowsocksOn")
|
||||
if on {
|
||||
|
Reference in New Issue
Block a user