Skip to content

Commit a9c0344

Browse files
authored
PYTHON-5647 extend ALLOWED_HOSTS (#2618)
1 parent 0c5eec7 commit a9c0344

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pymongo/auth_shared.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ def _build_credentials_tuple(
159159
"localhost",
160160
"127.0.0.1",
161161
"::1",
162+
"*.mongo.com",
163+
"*.mongodbgov.net",
162164
]
163165
allowed_hosts = properties.get("ALLOWED_HOSTS", default_allowed)
164166
if properties.get("ALLOWED_HOSTS", None) is not None and human_callback is None:

0 commit comments

Comments
 (0)