Skip to content

Commit

Permalink
Fixed a CE compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
snej committed Aug 30, 2024
1 parent 618ff57 commit 07d76f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cblite/liteserv/LiteServ.cc
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,15 @@ class LiteServTool : public LiteCoreTool {
}

if (Value tlsV = config["https"]) {
#ifdef COUCHBASE_ENTERPRISE
if (_listenerConfig.tlsConfig != nullptr)
fail("Config file's 'https' property conflicts with command-line --cert flag");
Dict tls = tlsV.asDict();
initializeTLS(tls["tls_cert_path"].asstring(), tls["tls_key_path"].asstring(),
tls["tls_client_cert_path"].asstring());
#else
fail("The 'https' property in the config file is not supported: TLS is an Enterprise Edition feature.");
#endif
}

Dict dbs = config["databases"].asDict();
Expand Down

0 comments on commit 07d76f8

Please sign in to comment.