1
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user