File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ async def _get_srv_response_and_hosts(
137137
138138 # Validate hosts
139139 for node in nodes :
140- if self .__fqdn == node [0 ].lower ():
140+ if self .__fqdn == node [0 ].lower () and len ( node [ 0 ]. split ( "." )) < 3 :
141141 raise ConfigurationError (
142142 "Invalid SRV host: return address is identical to SRV hostname"
143143 )
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ def _get_srv_response_and_hosts(
137137
138138 # Validate hosts
139139 for node in nodes :
140- if self .__fqdn == node [0 ].lower ():
140+ if self .__fqdn == node [0 ].lower () and len ( node [ 0 ]. split ( "." )) < 3 :
141141 raise ConfigurationError (
142142 "Invalid SRV host: return address is identical to SRV hostname"
143143 )
You can’t perform that action at this time.
0 commit comments