fix: more accurate dns errors
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
decentral1se 2024-06-25 00:27:48 +02:00
parent 9bf44c15ed
commit d787f71215
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410

View File

@ -9,7 +9,7 @@ import (
func EnsureIPv4(domainName string) (string, error) {
ipv4, err := net.ResolveIPAddr("ip4", domainName)
if err != nil {
return "", err
return "", fmt.Errorf("unable to resolve ipv4 address for %s, %s", domainName, err)
}
// NOTE(d1): e.g. when there is only an ipv6 record available