We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 294c2a9 commit 25d2dfdCopy full SHA for 25d2dfd
ShadowsocksX-NG/ServerProfileManager.swift
@@ -94,7 +94,7 @@ class ServerProfileManager: NSObject {
94
95
func isExisted(profile: ServerProfile) -> (Bool, Int){
96
for (index, value) in profiles.enumerated() {
97
- let ret = value.serverHost == profile.serverHost
+ let ret = (value.serverHost == profile.serverHost && value.serverPort == profile.serverPort)
98
if ret {
99
return (ret, index)
100
}
0 commit comments