Fixed: Auto remember proxy group not work
This commit is contained in:
parent
fbdbbc073d
commit
e4a64518e3
@ -89,7 +89,7 @@ class ApiRequest{
|
||||
|
||||
static func updateProxyGroup(group:String,selectProxy:String,callback:@escaping ((Bool)->())) {
|
||||
request(ConfigManager.apiUrl + "/proxies/\(group)", method: .put, parameters: ["name":selectProxy], encoding: JSONEncoding.default).responseJSON { (response) in
|
||||
callback(response.response?.statusCode == 200)
|
||||
callback(response.response?.statusCode == 204)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -53,7 +53,6 @@ class ConfigManager {
|
||||
|
||||
static var selectedProxyMap:[String:String] {
|
||||
get{
|
||||
return ["Proxy":"ProxyAuto"]
|
||||
return UserDefaults.standard.dictionary(forKey: "selectedProxyMap") as? [String:String] ?? ["Proxy":"ProxyAuto"]
|
||||
}
|
||||
set {
|
||||
|
Loading…
Reference in New Issue
Block a user