feat(cli,app): filter out ipv6 adresses for url resolving

This commit is contained in:
wpetit 2023-04-20 13:57:09 +02:00
parent 2543386e5c
commit 78307b6850
1 changed files with 5 additions and 1 deletions

View File

@ -367,7 +367,11 @@ func findMatchingDeviceAddress(ctx context.Context, from string, defaultAddr str
continue
}
return ip.String(), nil
if ip.To4() == nil {
continue
}
return ip.To4().String(), nil
}
}