fix: update regex for HTTP3 Alt-Svc port to only allow valid ports

This commit is contained in:
Théophile Diot 2024-11-18 17:44:56 +01:00
parent e648db58c5
commit 0a29cff031
No known key found for this signature in database
GPG key ID: FA995104A0BA376A

View file

@ -110,7 +110,7 @@
"help": "HTTP3 alternate service port. This value will be used as part of the Alt-Svc header.",
"id": "http3-alt-svc-port",
"label": "HTTP3 Alt-Svc port",
"regex": "^\\d+$",
"regex": "^((6553[0-5])|(655[0-2][0-9])|(65[0-4][0-9]{2})|(6[0-4][0-9]{3})|([1-5][0-9]{4})|([0-5]{0,5})|([0-9]{1,4}))$",
"type": "text"
},
"LISTEN_HTTP": {