fix: dont check ip on server when it is local
continuous-integration/drone/push Build is passing Details

Closes coop-cloud/organising#334.
This commit is contained in:
decentral1se 2022-08-14 22:20:17 +02:00
parent 42a6818ff4
commit e41caa891d
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,10 @@ func EnsureIPv4(domainName string) (string, error) {
// EnsureDomainsResolveSameIPv4 ensures that domains resolve to the same ipv4 address
func EnsureDomainsResolveSameIPv4(domainName, server string) (string, error) {
if server == "default" || server == "local" {
return "", nil
}
var ipv4 string
domainIPv4, err := EnsureIPv4(domainName)