Skip to content

Commit

Permalink
Use generated hostname when shared network is enabled
Browse files Browse the repository at this point in the history
(cherry picked from commit 6d0b723)
  • Loading branch information
cristianonicolai authored and gsmet committed Jul 23, 2024
1 parent 8957d30 commit 97ec5d1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,5 +313,10 @@ public String getReplicaSetUrl(String databaseName) {
return super.getReplicaSetUrl(databaseName);
}
}

@Override
public String getHost() {
return useSharedNetwork ? hostName : super.getHost();
}
}
}

0 comments on commit 97ec5d1

Please sign in to comment.