From 6062a1f8c7a1535b7029f8adc62c26d6795109ea Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 6 May 2024 12:33:22 +0200 Subject: [PATCH] chore: Update DNS server validation helper text --- bootstrap/helpers/shared.php | 2 +- resources/views/livewire/settings/configuration.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php index f11a9e416..d5cacb06c 100644 --- a/bootstrap/helpers/shared.php +++ b/bootstrap/helpers/shared.php @@ -1841,7 +1841,7 @@ function validate_dns_entry(string $fqdn, Server $server) $dns_servers = data_get($settings, 'custom_dns_servers'); $dns_servers = str($dns_servers)->explode(','); if ($server->id === 0) { - $ip = data_get($settings, 'public_ipv4') || data_get($settings, 'public_ipv6') || $server->ip; + $ip = data_get($settings, 'public_ipv4', data_get($settings, 'public_ipv6', $server->ip)); } else { $ip = $server->ip; } diff --git a/resources/views/livewire/settings/configuration.blade.php b/resources/views/livewire/settings/configuration.blade.php index a7292f624..d79121983 100644 --- a/resources/views/livewire/settings/configuration.blade.php +++ b/resources/views/livewire/settings/configuration.blade.php @@ -12,7 +12,7 @@