From 40ec3d97535b8883540ca7bada29a7ec5808733f Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 11 Oct 2023 13:34:51 +0200 Subject: [PATCH] fix --- app/Http/Livewire/Server/Form.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Livewire/Server/Form.php b/app/Http/Livewire/Server/Form.php index efe4f73eb..d053ca4bd 100644 --- a/app/Http/Livewire/Server/Form.php +++ b/app/Http/Livewire/Server/Form.php @@ -66,7 +66,7 @@ public function checkLocalhostConnection() { if ($uptime) { $this->emit('success', 'Server is reachable.'); $this->server->settings->is_reachable = true; - $this->server->settings->is_usaable = true; + $this->server->settings->is_usable = true; $this->server->settings->save(); } else { $this->emit('error', 'Server is not reachable. Please check your connection and configuration.'); @@ -128,6 +128,7 @@ public function submit() $this->emit('error', 'IP address is already in use by another team.'); return; } + refresh_server_connection($this->server->privateKey); $this->server->settings->wildcard_domain = $this->wildcard_domain; $this->server->settings->cleanup_after_percentage = $this->cleanup_after_percentage; $this->server->settings->save();