Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
K
koko
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
koko
Commits
accd0e67
Unverified
Commit
accd0e67
authored
Jul 19, 2019
by
老广
Committed by
GitHub
Jul 19, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #51 from jumpserver/dev
Dev
parents
f502a139
629f8793
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
README.md
README.md
+0
-4
websshws.go
pkg/httpd/websshws.go
+2
-3
No files found.
README.md
View file @
accd0e67
...
...
@@ -3,10 +3,6 @@
koko是golang版本的的coco;重构了coco的SSH/SFTP服务和web terminal服务。
## 注意
Koko的 web socket库不再使用socket.io,因为go里没有稳定的,替换成了
[
neffos
](
https://github.com/kataras/neffos
)
,
所以luna不再和原来兼容,请下载luna的koko版本
## 主要功能
...
...
pkg/httpd/websshws.go
View file @
accd0e67
...
...
@@ -235,12 +235,11 @@ func OnResizeHandler(c *neffos.NSConn, msg neffos.Message) (err error) {
// OnLogoutHandler 用户登出一个会话时触发, 用户主动退出
func
OnLogoutHandler
(
c
*
neffos
.
NSConn
,
msg
neffos
.
Message
)
(
err
error
)
{
logger
.
Debug
(
"Web terminal on logout event trigger: "
,
msg
.
Room
)
var
message
LogoutMs
g
err
=
msg
.
Unmarshal
(
&
message
)
var
clientID
strin
g
err
=
msg
.
Unmarshal
(
&
clientID
)
if
err
!=
nil
{
return
}
clientID
:=
message
.
Room
clients
.
DeleteClient
(
clientID
)
return
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment