diff options
Diffstat (limited to 'src/mongo/client/dbclient_base.cpp')
-rw-r--r-- | src/mongo/client/dbclient_base.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/client/dbclient_base.cpp b/src/mongo/client/dbclient_base.cpp index ab36bec7810..005657dc963 100644 --- a/src/mongo/client/dbclient_base.cpp +++ b/src/mongo/client/dbclient_base.cpp @@ -476,7 +476,8 @@ Status DBClientBase::authenticateInternalUser() { #endif auto status = - auth::authenticateInternalClient(clientName, boost::none, _makeAuthRunCommandHook()) + auth::authenticateInternalClient( + clientName, HostAndPort(getServerAddress()), boost::none, _makeAuthRunCommandHook()) .getNoThrow(); if (status.isOK()) { return status; |