From 83d00bbe3cd487fb2469b4492055356110f30a41 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 12 Oct 2023 11:41:37 +0200 Subject: [PATCH] fix: make sure to use IP address --- app/Http/Livewire/Server/Form.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Http/Livewire/Server/Form.php b/app/Http/Livewire/Server/Form.php index d053ca4bd..f773155d5 100644 --- a/app/Http/Livewire/Server/Form.php +++ b/app/Http/Livewire/Server/Form.php @@ -21,7 +21,7 @@ class Form extends Component protected $rules = [ 'server.name' => 'required|min:6', 'server.description' => 'nullable', - 'server.ip' => 'required', + 'server.ip' => 'required|ip', 'server.user' => 'required', 'server.port' => 'required', 'server.settings.is_cloudflare_tunnel' => 'required', @@ -30,11 +30,11 @@ class Form extends Component 'wildcard_domain' => 'nullable|url', ]; protected $validationAttributes = [ - 'server.name' => 'name', - 'server.description' => 'description', - 'server.ip' => 'ip', - 'server.user' => 'user', - 'server.port' => 'port', + 'server.name' => 'Name', + 'server.description' => 'Description', + 'server.ip' => 'IP address', + 'server.user' => 'User', + 'server.port' => 'Port', 'server.settings.is_cloudflare_tunnel' => 'Cloudflare Tunnel', 'server.settings.is_reachable' => 'is reachable', 'server.settings.is_part_of_swarm' => 'is part of swarm'