Wizard: edit validation of port format in the Firewall step

Fixes #3269
This commit is contained in:
Katarina Sieklova 2025-06-02 11:30:38 +02:00 committed by Anna Vítová
parent 42d7379a6c
commit 310f7a05cf

View file

@ -126,7 +126,7 @@ export const isKernelArgumentValid = (arg: string) => {
};
export const isPortValid = (port: string) => {
return /^(\d{1,5}|[a-z]{1,6})(-\d{1,5})?:[a-z]{1,6}$/.test(port);
return /^(\d{1,5}|[a-z]{1,6})(-\d{1,5})?[:/][a-z]{1,6}$/.test(port);
};
export const isServiceValid = (service: string) => {