mirror of
https://github.com/YGGverse/next.git
synced 2025-01-12 08:08:29 +00:00
build connection url to parse ipv6 #72811
This commit is contained in:
parent
b06f5c5e97
commit
817347ebbb
10
src/nex.php
10
src/nex.php
@ -314,6 +314,12 @@ $server->start(
|
|||||||
// Dump request on enabled
|
// Dump request on enabled
|
||||||
if (NEXT_DUMP)
|
if (NEXT_DUMP)
|
||||||
{
|
{
|
||||||
|
// Build connection URL #72811
|
||||||
|
$url = sprintf(
|
||||||
|
'nex://%s',
|
||||||
|
$connect
|
||||||
|
);
|
||||||
|
|
||||||
printf(
|
printf(
|
||||||
str_ireplace(
|
str_ireplace(
|
||||||
[
|
[
|
||||||
@ -327,8 +333,8 @@ $server->start(
|
|||||||
[
|
[
|
||||||
(string) date('c'),
|
(string) date('c'),
|
||||||
(string) (int) !empty($response),
|
(string) (int) !empty($response),
|
||||||
(string) parse_url($connect, PHP_URL_HOST),
|
(string) parse_url($url, PHP_URL_HOST),
|
||||||
(string) parse_url($connect, PHP_URL_PORT),
|
(string) parse_url($url, PHP_URL_PORT),
|
||||||
(string) str_replace('%', '%%', empty($request) ? '/' : $request),
|
(string) str_replace('%', '%%', empty($request) ? '/' : $request),
|
||||||
(string) str_replace('%', '%%', $realpath)
|
(string) str_replace('%', '%%', $realpath)
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user