forked from coop-cloud/abra
fix: make dns resolve errors more accurate
This commit is contained in:
parent
5d503319e3
commit
fd15aeab9a
|
@ -9,7 +9,7 @@ import (
|
||||||
func EnsureIPv4(domainName string) (string, error) {
|
func EnsureIPv4(domainName string) (string, error) {
|
||||||
ipv4, err := net.ResolveIPAddr("ip4", domainName)
|
ipv4, err := net.ResolveIPAddr("ip4", domainName)
|
||||||
if err != nil {
|
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
|
// NOTE(d1): e.g. when there is only an ipv6 record available
|
||||||
|
|
Loading…
Reference in New Issue