async-email / async-smtp

Apache License 2.0
59 stars 12 forks source link

Iterate over all addresses in case of an error #46

Closed Jikstra closed 2 years ago

Jikstra commented 2 years ago

This should fix issues where an ipv6 address is getting resolved first, but the network only supports ipv4 (and similiar problems).

link2xt commented 2 years ago

Works for me. To test, add

::1     testrun.org
176.9.92.144 testrun.org

and run configure in deltachat-core-rust REPL. Without this patch, configure fails due to connection refused errors, turns out ::1 is tried first.

For reference, this is a fix for https://github.com/deltachat/deltachat-core-rust/issues/2170

@dignifiedquire could you make a new release after merging this?