From 196a316141498fcd58d04dc03b57d368ad04b8fe Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 18 Feb 2015 17:16:42 +0900 Subject: [PATCH] Modified a few for EndPointManager.cs --- websocket-sharp/Net/EndPointManager.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/websocket-sharp/Net/EndPointManager.cs b/websocket-sharp/Net/EndPointManager.cs index b74e9350..744e5dc1 100644 --- a/websocket-sharp/Net/EndPointManager.cs +++ b/websocket-sharp/Net/EndPointManager.cs @@ -87,7 +87,7 @@ namespace WebSocketSharp.Net if (pref.Path.IndexOf ("//", StringComparison.Ordinal) != -1) throw new HttpListenerException (400, "Invalid path."); // TODO: Code? - // listens on all the interfaces if host name cannot be parsed by IPAddress. + // Listens on all the interfaces if host name cannot be parsed by IPAddress. var epl = getEndPointListener (pref.Host, pref.Port, httpListener, pref.IsSecure); epl.AddPrefix (pref, httpListener); } @@ -133,9 +133,7 @@ namespace WebSocketSharp.Net else if (!IPAddress.TryParse (host, out addr)) { try { var iphost = Dns.GetHostEntry (host); - addr = iphost != null - ? iphost.AddressList[0] - : IPAddress.Any; + addr = iphost != null ? iphost.AddressList[0] : IPAddress.Any; } catch { addr = IPAddress.Any;