We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 699ef0f commit 6d391f0Copy full SHA for 6d391f0
src/SuperSocket.Client/EasyClient.cs
@@ -112,7 +112,14 @@ protected virtual IConnector GetConnector()
112
{
113
var connectors = new List<IConnector>();
114
115
- connectors.Add(new SocketConnector(LocalEndPoint));
+ if (Proxy is IConnector proxy)
116
+ {
117
+ connectors.Add(proxy);
118
+ }
119
+ else
120
121
+ connectors.Add(new SocketConnector(LocalEndPoint));
122
123
124
var security = Security;
125
@@ -122,11 +129,6 @@ protected virtual IConnector GetConnector()
129
connectors.Add(new SslStreamConnector(security));
130
}
131
- if (Proxy is IConnector proxy)
126
- {
127
- connectors.Add(proxy);
128
- }
-
132
if (CompressionLevel != CompressionLevel.NoCompression)
133
134
connectors.Add(new GZipConnector(CompressionLevel));
0 commit comments