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 ecd9e68 commit 1b60983Copy full SHA for 1b60983
websocket-sharp/Ext.cs
@@ -405,6 +405,13 @@ internal static string GetAbsolutePath (this Uri uri)
405
return idx > 0 ? original.Substring (0, idx) : original;
406
}
407
408
+ internal static string GetDnsSafeHost (this Uri uri, bool bracketIPv6)
409
+ {
410
+ return bracketIPv6 && uri.HostNameType == UriHostNameType.IPv6
411
+ ? uri.Host
412
+ : uri.DnsSafeHost;
413
+ }
414
+
415
internal static string GetMessage (this CloseStatusCode code)
416
{
417
return code == CloseStatusCode.ProtocolError
0 commit comments