Add connect_ports list to config struct instead of keeping extra global var.
Michael
This commit is contained in:
1 parent
c981b246ce
commit
4c0a4d985f
5 files changed
+22
-22
No files matched your search
+3
-1
@@ -419,7 +419,9 @@ BAD_REQUEST_ERROR:
|
||||
}
|
||||
|
||||
/* Verify that the port in the CONNECT method is allowed */
|
||||
if (!check_allowed_connect_ports (request->port)) {
|
||||
if (!check_allowed_connect_ports (request->port,
|
||||
config.connect_ports))
|
||||
{
|
||||
indicate_http_error (connptr, 403, "Access violation",
|
||||
"detail",
|
||||
"The CONNECT method not allowed "
|
||||
|
||||
Reference in new issue
Block a user