mirror of
https://github.com/qinyuhang/ShadowsocksX-NG-R.git
synced 2026-10-20 22:44:11 +00:00
修改订阅去重复策略
This commit is contained in:
@@ -94,7 +94,7 @@ class ServerProfileManager: NSObject {
|
||||
|
||||
func isExisted(profile: ServerProfile) -> (Bool, Int){
|
||||
for (index, value) in profiles.enumerated() {
|
||||
let ret = value.serverHost == profile.serverHost
|
||||
let ret = (value.serverHost == profile.serverHost && value.serverPort == profile.serverPort)
|
||||
if ret {
|
||||
return (ret, index)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user