diff --git a/src/security/tls_session.h b/src/security/tls_session.h
index 0a09ba2eb82d1b0e802d124b2b152067ec597b6e..1303ef2320e8183ca2a454c46073622845140055 100644
--- a/src/security/tls_session.h
+++ b/src/security/tls_session.h
@@ -138,6 +138,8 @@ public:
     // Returns the TLS session type ('server' or 'client')
     const char* typeName() const;
 
+    bool isServer() const { return isServer_; }
+
     // Request TLS thread to stop and quit. IO are not possible after that.
     void shutdown();