mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 23:55:35 +08:00
update to 1.5.3 version
fix linux terminal input bug
This commit is contained in:
@@ -184,7 +184,7 @@ class Console
|
|||||||
$vss->callback = function(?WSConnection $conn) use ($terminal_id){
|
$vss->callback = function(?WSConnection $conn) use ($terminal_id){
|
||||||
$req = ctx()->getRequest();
|
$req = ctx()->getRequest();
|
||||||
if($conn->getType() != "terminal") return false;
|
if($conn->getType() != "terminal") return false;
|
||||||
if(($req->header["x-terminal-id"] ?? "") != $terminal_id || ($req->header["x-pid"] ?? "") != posix_getpid()) {
|
if(($req->header["x-terminal-id"] ?? "") != $terminal_id) {
|
||||||
$conn->close();
|
$conn->close();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user