添加docker 部署agent
This commit is contained in:
@@ -70,7 +70,8 @@ function getLocaleUrl($always_http = false)
|
||||
|
||||
$request_scheme = $is_https ? 'https://' : 'http://';
|
||||
$hostname = $_SERVER['SERVER_NAME'];
|
||||
$hostport = (($is_https && '443' == $_SERVER['SERVER_PORT']) || (!$is_https && '80' == $_SERVER['SERVER_PORT'])) ? '' : ':' . intval($_SERVER['SERVER_PORT']);
|
||||
$real_port = isset($_SERVER['HTTP_X_FORWARDED_PORT']) ? $_SERVER['HTTP_X_FORWARDED_PORT'] : $_SERVER['SERVER_PORT'];
|
||||
$hostport = (($is_https && '443' == $real_port) || (!$is_https && '80' == $real_port)) ? '' : ':' . intval($real_port);
|
||||
|
||||
if ($always_http)
|
||||
return 'http://' . $hostname . $hostport;
|
||||
|
||||
Reference in New Issue
Block a user