File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -174,10 +174,14 @@ public TextMessage(string text)
174
174
/// <returns>The fixed up URL.</returns>
175
175
public static string FixupURL ( string URL )
176
176
{
177
- if ( URL . StartsWith ( "http://stream" ) )
178
- URL = URL . Replace ( "http://stream" , "ws://stream-tls10" ) ;
179
- else if ( URL . StartsWith ( "https://stream" ) )
180
- URL = URL . Replace ( "https://stream" , "wss://stream-tls10" ) ;
177
+ if ( URL . StartsWith ( "http://stream." ) )
178
+ URL = URL . Replace ( "http://stream." , "ws://stream-tls10." ) ;
179
+ else if ( URL . StartsWith ( "https://stream." ) )
180
+ URL = URL . Replace ( "https://stream." , "wss://stream-tls10." ) ;
181
+ else if ( URL . StartsWith ( "http://stream-tls10." ) )
182
+ URL = URL . Replace ( "http://stream-tls10." , "ws://stream-tls10." ) ;
183
+ else if ( URL . StartsWith ( "https://stream-tls10." ) )
184
+ URL = URL . Replace ( "https://stream-tls10." , "wss://stream-tls10." ) ;
181
185
182
186
return URL ;
183
187
}
You can’t perform that action at this time.
0 commit comments