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