Skip to content

Commit abd9eb7

Browse files
committed
Moved to _get_srv_response_and_hosts
1 parent e756efc commit abd9eb7

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

pymongo/asynchronous/srv_resolver.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,6 @@ def __init__(
9696
except Exception:
9797
raise ConfigurationError(_INVALID_HOST_MSG % (fqdn,)) from None
9898
self.__slen = len(self.__plist)
99-
if fqdn == self._resolve_uri(True)[0].target.to_text():
100-
raise ConfigurationError(
101-
"Invalid SRV host: return address is identical to SRV hostname"
102-
)
10399

104100
async def get_options(self) -> Optional[str]:
105101
from dns import resolver

pymongo/synchronous/srv_resolver.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,6 @@ def __init__(
9696
except Exception:
9797
raise ConfigurationError(_INVALID_HOST_MSG % (fqdn,)) from None
9898
self.__slen = len(self.__plist)
99-
if fqdn == self._resolve_uri(True)[0].target.to_text():
100-
raise ConfigurationError(
101-
"Invalid SRV host: return address is identical to SRV hostname"
102-
)
10399

104100
def get_options(self) -> Optional[str]:
105101
from dns import resolver

0 commit comments

Comments
 (0)