File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
- 1264
1
+ 1265
Original file line number Diff line number Diff line change @@ -148,14 +148,13 @@ - (NSDictionary *)proxyConfiguration:(NSString *)proxyServer
148
148
[dictionary setObject: host forKey: (NSString *)kCFStreamPropertySOCKSProxyHost ];
149
149
if (port)
150
150
[dictionary setObject: port forKey: (NSString *)kCFStreamPropertySOCKSProxyPort ];
151
- } else if ([proxyServer hasPrefix: @" https://" ]) {
152
- [dictionary setObject: host forKey: (NSString *)kCFStreamPropertyHTTPSProxyHost ];
153
- if (port)
154
- [dictionary setObject: port forKey: (NSString *)kCFStreamPropertyHTTPSProxyPort ];
155
151
} else {
152
+ [dictionary setObject: host forKey: (NSString *)kCFStreamPropertyHTTPSProxyHost ];
156
153
[dictionary setObject: host forKey: (NSString *)kCFStreamPropertyHTTPProxyHost ];
157
- if (port)
154
+ if (port) {
155
+ [dictionary setObject: port forKey: (NSString *)kCFStreamPropertyHTTPSProxyPort ];
158
156
[dictionary setObject: port forKey: (NSString *)kCFStreamPropertyHTTPProxyPort ];
157
+ }
159
158
}
160
159
161
160
#pragma clang diagnostic pop
You can’t perform that action at this time.
0 commit comments