changeset 2633:40c7926b75f8

log about remote access allowed
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 25 May 2018 18:53:47 +0200
parents 42ac291f7b3f
children 442e7ef5cc41
files Core/HttpServer/MongooseServer.cpp OrthancServer/main.cpp
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Core/HttpServer/MongooseServer.cpp	Wed May 16 14:32:56 2018 +0200
+++ b/Core/HttpServer/MongooseServer.cpp	Fri May 25 18:53:47 2018 +0200
@@ -997,6 +997,13 @@
       {
         throw OrthancException(ErrorCode_HttpPortInUse);
       }
+
+      LOG(WARNING) << "HTTP server listening on port: " << GetPortNumber()
+                   << " (HTTPS encryption is "
+                   << (IsSslEnabled() ? "enabled" : "disabled")
+                   << ", remote access is "
+                   << (IsRemoteAccessAllowed() ? "" : "not ")
+                   << "allowed)";
     }
   }
 
--- a/OrthancServer/main.cpp	Wed May 16 14:32:56 2018 +0200
+++ b/OrthancServer/main.cpp	Fri May 25 18:53:47 2018 +0200
@@ -793,9 +793,6 @@
   }
 
   httpServer.Start();
-  LOG(WARNING) << "HTTP server listening on port: " << httpServer.GetPortNumber()
-               << " (HTTPS encryption is "
-               << (httpServer.IsSslEnabled() ? "enabled" : "disabled") << ")";
   
   bool restart = WaitForExit(context, restApi);