Skip to content

Commit 2dc0652

Browse files
committed
Updated DEFAULT_ALLOWED_HOSTS (#1843)
Added *.mongo.com JAVA-6008
1 parent 1ef94ed commit 2dc0652

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver-core/src/main/com/mongodb/MongoCredential.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,13 +261,13 @@ public final class MongoCredential {
261261
* The list of allowed hosts that will be used if no
262262
* {@link MongoCredential#ALLOWED_HOSTS_KEY} value is supplied.
263263
* The default allowed hosts are:
264-
* {@code "*.mongodb.net", "*.mongodb-qa.net", "*.mongodb-dev.net", "*.mongodbgov.net", "localhost", "127.0.0.1", "::1"}
264+
* {@code "*.mongo.com", "*.mongodb.net", "*.mongodb-qa.net", "*.mongodb-dev.net", "*.mongodbgov.net", "localhost", "127.0.0.1", "::1"}
265265
*
266266
* @see #createOidcCredential(String)
267267
* @since 5.1
268268
*/
269269
public static final List<String> DEFAULT_ALLOWED_HOSTS = Collections.unmodifiableList(Arrays.asList(
270-
"*.mongodb.net", "*.mongodb-qa.net", "*.mongodb-dev.net", "*.mongodbgov.net", "localhost", "127.0.0.1", "::1"));
270+
"*.mongo.com", "*.mongodb.net", "*.mongodb-qa.net", "*.mongodb-dev.net", "*.mongodbgov.net", "localhost", "127.0.0.1", "::1"));
271271

272272
/**
273273
* Mechanism property key for specifying the URI of the target resource (sometimes called the audience),

0 commit comments

Comments
 (0)