update to 1.5.3 version

fix linux terminal input bug
This commit is contained in:
whale
2020-06-10 13:23:40 +08:00
parent c0ea068d04
commit 00a8683658

View File

@@ -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;
} }