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(
137
137
138
138
# Validate hosts
139
139
for node in nodes :
140
- if self .__fqdn == node [0 ].lower ():
140
+ if self .__fqdn == node [0 ].lower () and len ( node [ 0 ]. split ( "." )) < 3 :
141
141
raise ConfigurationError (
142
142
"Invalid SRV host: return address is identical to SRV hostname"
143
143
)
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ def _get_srv_response_and_hosts(
137
137
138
138
# Validate hosts
139
139
for node in nodes :
140
- if self .__fqdn == node [0 ].lower ():
140
+ if self .__fqdn == node [0 ].lower () and len ( node [ 0 ]. split ( "." )) < 3 :
141
141
raise ConfigurationError (
142
142
"Invalid SRV host: return address is identical to SRV hostname"
143
143
)
You can’t perform that action at this time.
0 commit comments