Commit 4f84e69
The IPv6 support commit (958f139) changed ip_from_host() to async,
but replaced it with ip_address() in __init__ which doesn't resolve
DNS hostnames. This caused a ValueError when using hostnames like
'unifi.local' with override_connection_host=True.
Fix: Simply store the host string as-is. The format_host_for_url()
function already handles both IP addresses and hostnames correctly.
Co-authored-by: ${localEnv} <${localEnv@localhost}>
1 parent b9b542a commit 4f84e69
2 files changed
+12
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1075 | 1075 | | |
1076 | 1076 | | |
1077 | 1077 | | |
1078 | | - | |
| 1078 | + | |
1079 | 1079 | | |
1080 | 1080 | | |
1081 | 1081 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | | - | |
| 324 | + | |
325 | 325 | | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
330 | 331 | | |
331 | 332 | | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
| 333 | + | |
| 334 | + | |
336 | 335 | | |
337 | 336 | | |
338 | 337 | | |
| |||
342 | 341 | | |
343 | 342 | | |
344 | 343 | | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
362 | 347 | | |
363 | 348 | | |
364 | 349 | | |
| |||
0 commit comments