diff --git a/GalleryShare/GalleryServer.cs b/GalleryShare/GalleryServer.cs index d79047b..b13491c 100644 --- a/GalleryShare/GalleryServer.cs +++ b/GalleryShare/GalleryServer.cs @@ -77,6 +77,7 @@ namespace GalleryShare /// The Http request to handle. private async Task Handle(HttpListenerContext cycle) { + IPEndPoint remoteEndpoint = cycle.Request.RemoteEndPoint; try { await router.RouteRequest(cycle); @@ -86,7 +87,7 @@ namespace GalleryShare { Console.WriteLine("[{0}] [{1}] [Error] {2} ({3})", DateTime.Now.ToString("hh:m tt"), - cycle.Request.RemoteEndPoint, + remoteEndpoint, cycle.Request.RawUrl, error.Message );