Skip to content

Conversation

@rozza
Copy link
Member

@rozza rozza commented Nov 25, 2025

Added *.mongo.com

JAVA-6008

Added *.mongo.com

JAVA-6008
@rozza rozza requested a review from a team as a code owner November 25, 2025 11:26
@rozza rozza requested a review from strogiyotec November 25, 2025 11:26
* @since 5.1
*/
public static final List<String> DEFAULT_ALLOWED_HOSTS = Collections.unmodifiableList(Arrays.asList(
"*.mongodb.net", "*.mongodb-qa.net", "*.mongodb-dev.net", "*.mongodbgov.net", "localhost", "127.0.0.1", "::1"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not related to this PR, but Arrays.asList already creates immutable list, not sure why we are wrapping it with unmodifiable list again

@strogiyotec
Copy link
Contributor

Looks legit, approved

@rozza rozza merged commit 9796f56 into mongodb:main Nov 27, 2025
56 checks passed
@rozza rozza deleted the JAVA-6008 branch November 27, 2025 13:44
rozza added a commit to rozza/mongo-java-driver that referenced this pull request Dec 2, 2025
rozza added a commit that referenced this pull request Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants