[Modify] Polish it
This commit is contained in:
parent
91d12041a8
commit
a44139c59a
@ -632,10 +632,9 @@ namespace WebSocketSharp.Server
|
||||
|
||||
private static string convertToString (System.Net.IPAddress address)
|
||||
{
|
||||
var str = address.ToString ();
|
||||
return address.AddressFamily == AddressFamily.InterNetworkV6
|
||||
? String.Format ("[{0}]", str)
|
||||
: str;
|
||||
? String.Format ("[{0}]", address.ToString ())
|
||||
: address.ToString ();
|
||||
}
|
||||
|
||||
private static string getHost (Uri uri)
|
||||
|
Loading…
Reference in New Issue
Block a user