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
dd78d954
Commit
dd78d954
authored
May 17, 2019
by
Eric
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] fix bugs
parent
262803eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
session.go
pkg/handler/session.go
+1
-1
proxy.go
pkg/proxy/proxy.go
+1
-1
No files found.
pkg/handler/session.go
View file @
dd78d954
...
@@ -185,7 +185,7 @@ func (h *interactiveHandler) Dispatch(ctx cctx.Context) {
...
@@ -185,7 +185,7 @@ func (h *interactiveHandler) Dispatch(ctx cctx.Context) {
case
strings
.
Index
(
line
,
"/"
)
==
0
:
case
strings
.
Index
(
line
,
"/"
)
==
0
:
searchWord
:=
strings
.
TrimSpace
(
line
[
1
:
])
searchWord
:=
strings
.
TrimSpace
(
line
[
1
:
])
assets
:=
h
.
searchAsset
(
searchWord
)
assets
:=
h
.
searchAsset
(
searchWord
)
h
.
displayAssets
OrProxy
(
assets
)
h
.
displayAssets
(
assets
)
case
strings
.
Index
(
line
,
"g"
)
==
0
:
case
strings
.
Index
(
line
,
"g"
)
==
0
:
searchWord
:=
strings
.
TrimSpace
(
strings
.
TrimPrefix
(
line
,
"g"
))
searchWord
:=
strings
.
TrimSpace
(
strings
.
TrimPrefix
(
line
,
"g"
))
if
num
,
err
:=
strconv
.
Atoi
(
searchWord
);
err
==
nil
{
if
num
,
err
:=
strconv
.
Atoi
(
searchWord
);
err
==
nil
{
...
...
pkg/proxy/proxy.go
View file @
dd78d954
...
@@ -57,7 +57,7 @@ func (p *ProxyServer) validatePermission() bool {
...
@@ -57,7 +57,7 @@ func (p *ProxyServer) validatePermission() bool {
func
(
p
*
ProxyServer
)
getSSHConn
()
(
srvConn
*
ServerSSHConnection
,
err
error
)
{
func
(
p
*
ProxyServer
)
getSSHConn
()
(
srvConn
*
ServerSSHConnection
,
err
error
)
{
srvConn
=
&
ServerSSHConnection
{
srvConn
=
&
ServerSSHConnection
{
name
:
p
.
Asset
.
Id
,
name
:
p
.
Asset
.
Hostname
,
host
:
p
.
Asset
.
Ip
,
host
:
p
.
Asset
.
Ip
,
port
:
strconv
.
Itoa
(
p
.
Asset
.
Port
),
port
:
strconv
.
Itoa
(
p
.
Asset
.
Port
),
user
:
p
.
SystemUser
.
Username
,
user
:
p
.
SystemUser
.
Username
,
...
...
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