This commit is contained in:
2025-06-25 09:48:22 +08:00
parent ece8360dd4
commit 4430a846e8
+2
View File
@@ -1,6 +1,7 @@
<?php
namespace app\process;
use support\Log;
use Workerman\Connection\AsyncTcpConnection;
use Workerman\Connection\TcpConnection;
use Workerman\Protocols\Http\Request;
@@ -14,6 +15,7 @@ class Proxy
'ntrans.example.cn' => 'ntrans.xfyun.cn',
];
$host = $request->host(true);
log::info('$host:'.$host);
if (!isset($replace[$host])) {
return $connection->send(response('404 not found', 404));
}