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
21379f76
Commit
21379f76
authored
May 06, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] handle移除来
parent
2f4e004c
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
7 additions
and
6 deletions
+7
-6
banner.go
pkg/handler/banner.go
+0
-0
const.go
pkg/handler/const.go
+0
-0
session.go
pkg/handler/session.go
+0
-0
sftp.go
pkg/handler/sftp.go
+0
-0
test.go
pkg/handler/test.go
+0
-0
utils.go
pkg/handler/utils.go
+0
-0
transport.go
pkg/proxy/transport.go
+6
-5
server.go
pkg/sshd/server.go
+1
-1
No files found.
pkg/
sshd/
handler/banner.go
→
pkg/handler/banner.go
View file @
21379f76
File moved
pkg/
sshd/
handler/const.go
→
pkg/handler/const.go
View file @
21379f76
File moved
pkg/
sshd/
handler/session.go
→
pkg/handler/session.go
View file @
21379f76
File moved
pkg/
sshd/
handler/sftp.go
→
pkg/handler/sftp.go
View file @
21379f76
File moved
pkg/
sshd/
handler/test.go
→
pkg/handler/test.go
View file @
21379f76
File moved
pkg/
sshd/
handler/utils.go
→
pkg/handler/utils.go
View file @
21379f76
File moved
pkg/proxy/transport.go
View file @
21379f76
package
proxy
package
proxy
import
(
import
(
"cocogo/pkg/logger"
"io"
"io"
"cocogo/pkg/logger"
)
)
type
Transport
interface
{
type
Transport
interface
{
...
@@ -58,9 +59,9 @@ func (dt *DirectTransport) Keep() {
...
@@ -58,9 +59,9 @@ func (dt *DirectTransport) Keep() {
return
return
}
}
func
NewDirectTransport
(
name
string
,
readWriter
io
.
ReadWriter
)
(
tr
Transport
)
{
func
NewDirectTransport
(
name
string
,
readWriter
io
.
ReadWriter
)
Transport
{
ch
:=
make
(
chan
[]
byte
,
1024
)
ch
:=
make
(
chan
[]
byte
,
1024
)
d
tr
:=
DirectTransport
{
readWriter
:
readWriter
,
ch
:
ch
}
tr
:=
DirectTransport
{
readWriter
:
readWriter
,
ch
:
ch
}
go
d
tr
.
Keep
()
go
tr
.
Keep
()
return
&
d
tr
return
&
tr
}
}
pkg/sshd/server.go
View file @
21379f76
...
@@ -7,8 +7,8 @@ import (
...
@@ -7,8 +7,8 @@ import (
"cocogo/pkg/auth"
"cocogo/pkg/auth"
"cocogo/pkg/config"
"cocogo/pkg/config"
"cocogo/pkg/handler"
"cocogo/pkg/logger"
"cocogo/pkg/logger"
"cocogo/pkg/sshd/handler"
)
)
const
version
=
"coco-v1.4"
const
version
=
"coco-v1.4"
...
...
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