From e15ac24761b9602775f344ff5158736ef7584708 Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 30 Sep 2020 19:38:31 +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 99d4f6cb..cce76169 100644 --- a/websocket-sharp/Net/EndPointManager.cs +++ b/websocket-sharp/Net/EndPointManager.cs @@ -90,8 +90,11 @@ namespace WebSocketSharp.Net throw new HttpListenerException (87, msg); } - if (!addr.IsLocal ()) - throw new HttpListenerException (87, "Includes an invalid host."); + if (!addr.IsLocal ()) { + var msg = "The URI prefix includes an invalid host."; + + throw new HttpListenerException (87, msg); + } int port;