Compare commits

...

2 Commits
1.5.2 ... 1.5.3

Author SHA1 Message Date
whale
3287b96f30 update to 1.5.3 version 2020-06-10 13:24:04 +08:00
whale
00a8683658 update to 1.5.3 version
fix linux terminal input bug
2020-06-10 13:23:40 +08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
"description": "High performance QQ robot and web server development framework",
"minimum-stability": "stable",
"license": "Apache-2.0",
"version": "1.5.2",
"version": "1.5.3",
"authors": [
{
"name": "whale",

View File

@@ -184,7 +184,7 @@ class Console
$vss->callback = function(?WSConnection $conn) use ($terminal_id){
$req = ctx()->getRequest();
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();
return false;
}