File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1522,9 +1522,13 @@ function update($event_name, $data) {
15221522
15231523 //proxy protocol settings
15241524 if ($ web_config ['vhost_proxy_protocol_enabled ' ] == "y " ){
1525- $ vhost_data ['use_proxy_protocol ' ] = $ data ['new ' ]['proxy_protocol ' ];
1526- $ vhost_data ['proxy_protocol_http ' ] = (int )$ web_config ['vhost_proxy_protocol_http_port ' ];
1527- $ vhost_data ['proxy_protocol_https ' ] = (int )$ web_config ['vhost_proxy_protocol_https_port ' ];
1525+ if ((int )$ web_config ['vhost_proxy_protocol_https_port ' ] > 0 ) {
1526+ $ vhost_data ['use_proxy_protocol ' ] = $ data ['new ' ]['proxy_protocol ' ];
1527+ $ vhost_data ['proxy_protocol_http ' ] = (int )$ web_config ['vhost_proxy_protocol_http_port ' ];
1528+ $ vhost_data ['proxy_protocol_https ' ] = (int )$ web_config ['vhost_proxy_protocol_https_port ' ];
1529+ } else {
1530+ $ vhost_data ['use_proxy_protocol ' ] = "n " ;
1531+ }
15281532 }else {
15291533 $ vhost_data ['use_proxy_protocol ' ] = "n " ;
15301534 }
You can’t perform that action at this time.
0 commit comments