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
5bdb1e63
Commit
5bdb1e63
authored
5 years ago
by
Eric
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug: no addr
parent
7eb9e32f
master
commadparse
dev
gengmei
v52
v54
1.5.6
1.5.5
1.5.4
1.5.3
1.5.2
1.5.1
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
handler.go
pkg/httpd/handler.go
+3
-1
No files found.
pkg/httpd/handler.go
View file @
5bdb1e63
...
...
@@ -4,6 +4,7 @@ import (
"errors"
"fmt"
"io"
"net"
"strings"
"github.com/gliderlabs/ssh"
...
...
@@ -82,8 +83,9 @@ func OnHostHandler(s socketio.Conn, message HostMsg) {
ctx
:=
s
.
Context
()
.
(
WebContext
)
userR
,
userW
:=
io
.
Pipe
()
conn
:=
conns
.
GetWebConn
(
s
.
ID
())
addr
,
_
,
_
:=
net
.
SplitHostPort
(
s
.
RemoteAddr
()
.
String
())
client
:=
&
Client
{
Uuid
:
clientID
,
Cid
:
conn
.
Cid
,
user
:
conn
.
User
,
Uuid
:
clientID
,
Cid
:
conn
.
Cid
,
user
:
conn
.
User
,
addr
:
addr
,
WinChan
:
make
(
chan
ssh
.
Window
,
100
),
Conn
:
s
,
UserRead
:
userR
,
UserWrite
:
userW
,
pty
:
ssh
.
Pty
{
Term
:
"xterm"
,
Window
:
win
},
...
...
This diff is collapsed.
Click to expand it.
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