fix: proxyIP can't be a subnet

Co-authored-by: Stéphane Lesimple <speed47_github@speed47.net>
pull/592/head
Jonah 3 months ago committed by GitHub
parent 08d440717e
commit 053aad1922
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -92,7 +92,7 @@ sub check {
}
# validate proxy host format (same as regular host validation)
if ($proxyIp !~ m{^[a-zA-Z0-9._/:-]+$}) {
if ($proxyIp !~ m{^[a-zA-Z0-9._:-]+$}) {
return R('ERR_INVALID_PARAMETER', msg => "Proxy host name '$proxyIp' seems invalid");
}

Loading…
Cancel
Save