Mercurial > hg > orthanc
diff Core/HttpServer/MongooseServer.h @ 34:96e57b863dd9
option to disallow remote access
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 30 Aug 2012 11:22:21 +0200 |
parents | dd1489098265 |
children | a15e90e5d6fc |
line wrap: on
line diff
--- a/Core/HttpServer/MongooseServer.h Thu Aug 30 09:35:38 2012 +0200 +++ b/Core/HttpServer/MongooseServer.h Thu Aug 30 11:22:21 2012 +0200 @@ -44,6 +44,7 @@ typedef std::set<std::string> RegisteredUsers; RegisteredUsers registeredUsers_; + bool remoteAllowed_; bool authentication_; bool ssl_; std::string certificate_; @@ -95,6 +96,13 @@ void SetSslCertificate(const char* path); + bool IsRemoteAccessAllowed() const + { + return remoteAllowed_; + } + + void SetRemoteAccessAllowed(bool allowed); + void ClearHandlers(); // Can return NULL if no handler is associated to this URI