From 59537da25b9e2469856e64b60d3ea286d0977438 Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 29 Sep 2020 22:05:39 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/EndPointManager.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/websocket-sharp/Net/EndPointManager.cs b/websocket-sharp/Net/EndPointManager.cs index bcdc6374..99d4f6cb 100644 --- a/websocket-sharp/Net/EndPointManager.cs +++ b/websocket-sharp/Net/EndPointManager.cs @@ -84,8 +84,11 @@ namespace WebSocketSharp.Net var addr = convertToIPAddress (pref.Host); - if (addr == null) - throw new HttpListenerException (87, "Includes an invalid host."); + if (addr == null) { + var msg = "The URI prefix includes an invalid host."; + + throw new HttpListenerException (87, msg); + } if (!addr.IsLocal ()) throw new HttpListenerException (87, "Includes an invalid host.");