mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
Fix some style (spaces only)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1756853 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -119,7 +119,7 @@ static int allowed_port(connect_conf *conf, int port)
|
|||||||
int i;
|
int i;
|
||||||
port_range *list = (port_range *) conf->allowed_connect_ports->elts;
|
port_range *list = (port_range *) conf->allowed_connect_ports->elts;
|
||||||
|
|
||||||
if (apr_is_empty_array(conf->allowed_connect_ports)){
|
if (apr_is_empty_array(conf->allowed_connect_ports)) {
|
||||||
return port == APR_URI_HTTPS_DEFAULT_PORT
|
return port == APR_URI_HTTPS_DEFAULT_PORT
|
||||||
|| port == APR_URI_SNEWS_DEFAULT_PORT;
|
|| port == APR_URI_SNEWS_DEFAULT_PORT;
|
||||||
}
|
}
|
||||||
@@ -227,7 +227,7 @@ static int proxy_connect_handler(request_rec *r, proxy_worker *worker,
|
|||||||
connectname, connectport);
|
connectname, connectport);
|
||||||
|
|
||||||
/* Check if it is an allowed port */
|
/* Check if it is an allowed port */
|
||||||
if(!allowed_port(c_conf, uri.port)) {
|
if (!allowed_port(c_conf, uri.port)) {
|
||||||
return ap_proxyerror(r, HTTP_FORBIDDEN,
|
return ap_proxyerror(r, HTTP_FORBIDDEN,
|
||||||
"Connect to remote machine blocked");
|
"Connect to remote machine blocked");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user