Skip to content

Commit 25d2dfd

Browse files
committed
修改订阅去重复策略
1 parent 294c2a9 commit 25d2dfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ShadowsocksX-NG/ServerProfileManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class ServerProfileManager: NSObject {
9494

9595
func isExisted(profile: ServerProfile) -> (Bool, Int){
9696
for (index, value) in profiles.enumerated() {
97-
let ret = value.serverHost == profile.serverHost
97+
let ret = (value.serverHost == profile.serverHost && value.serverPort == profile.serverPort)
9898
if ret {
9999
return (ret, index)
100100
}

0 commit comments

Comments
 (0)