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)
174174 /// <returns>The fixed up URL.</returns>
175175 public static string FixupURL ( string URL )
176176 {
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." ) ;
181185
182186 return URL ;
183187 }
You can’t perform that action at this time.
0 commit comments