1
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace app\process;
|
namespace app\process;
|
||||||
|
|
||||||
|
use support\Log;
|
||||||
use Workerman\Connection\AsyncTcpConnection;
|
use Workerman\Connection\AsyncTcpConnection;
|
||||||
use Workerman\Connection\TcpConnection;
|
use Workerman\Connection\TcpConnection;
|
||||||
use Workerman\Protocols\Http\Request;
|
use Workerman\Protocols\Http\Request;
|
||||||
@@ -14,6 +15,7 @@ class Proxy
|
|||||||
'ntrans.example.cn' => 'ntrans.xfyun.cn',
|
'ntrans.example.cn' => 'ntrans.xfyun.cn',
|
||||||
];
|
];
|
||||||
$host = $request->host(true);
|
$host = $request->host(true);
|
||||||
|
log::info('$host:'.$host);
|
||||||
if (!isset($replace[$host])) {
|
if (!isset($replace[$host])) {
|
||||||
return $connection->send(response('404 not found', 404));
|
return $connection->send(response('404 not found', 404));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user