File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -136,9 +136,8 @@ async def _get_srv_response_and_hosts(
136136 ]
137137
138138 # Validate hosts
139- srv_host = results [0 ].target .to_text ()
140139 for node in nodes :
141- if self .__fqdn == srv_host :
140+ if self .__fqdn == node [ 0 ]. lower () :
142141 raise ConfigurationError (
143142 "Invalid SRV host: return address is identical to SRV hostname"
144143 )
Original file line number Diff line number Diff line change @@ -136,9 +136,8 @@ def _get_srv_response_and_hosts(
136136 ]
137137
138138 # Validate hosts
139- srv_host = results [0 ].target .to_text ()
140139 for node in nodes :
141- if self .__fqdn == srv_host :
140+ if self .__fqdn == node [ 0 ]. lower () :
142141 raise ConfigurationError (
143142 "Invalid SRV host: return address is identical to SRV hostname"
144143 )
You can’t perform that action at this time.
0 commit comments