Skip to content

Commit

Permalink
Merge pull request quarkusio#42065 from cristianonicolai/fix/mongo_main
Browse files Browse the repository at this point in the history
Use generated hostname when shared network is enabled
  • Loading branch information
gsmet authored Jul 23, 2024
2 parents 84caf55 + 6d0b723 commit fc6adf5
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 fc6adf5

Please sign in to comment.