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
034021d8
Commit
034021d8
authored
Jun 24, 2019
by
Eric
Committed by
Eric_Lee
Jun 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bugs
parent
52d0fa45
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
switch.go
pkg/proxy/switch.go
+1
-1
No files found.
pkg/proxy/switch.go
View file @
034021d8
...
@@ -84,7 +84,7 @@ func (s *SwitchSession) generateCommandResult(command [2]string) *model.Command
...
@@ -84,7 +84,7 @@ func (s *SwitchSession) generateCommandResult(command [2]string) *model.Command
input
=
command
[
0
]
input
=
command
[
0
]
}
}
i
:=
strings
.
LastIndexByte
(
command
[
1
],
'\r'
)
i
:=
strings
.
LastIndexByte
(
command
[
1
],
'\r'
)
if
i
<
0
{
if
i
<
=
0
{
output
=
command
[
1
]
output
=
command
[
1
]
}
else
if
i
>
0
&&
i
<
1024
{
}
else
if
i
>
0
&&
i
<
1024
{
output
=
command
[
1
][
:
i
]
output
=
command
[
1
][
:
i
]
...
...
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