Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
gost
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
gost
Commits
4ce6f0e1
Commit
4ce6f0e1
authored
Aug 12, 2017
by
rui.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typos
parent
4d5fa988
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
11 deletions
+14
-11
cmd/gost/main.go
cmd/gost/main.go
+4
-4
examples/forward/udp/cli.go
examples/forward/udp/cli.go
+1
-1
node.go
node.go
+1
-1
snapcraft.yaml
snapcraft.yaml
+6
-3
ss.go
ss.go
+1
-1
ssh.go
ssh.go
+1
-1
No files found.
cmd/gost/main.go
View file @
4ce6f0e1
...
...
@@ -251,9 +251,9 @@ func serve(chain *gost.Chain) error {
wsOpts
.
WriteBufferSize
,
_
=
strconv
.
Atoi
(
node
.
Values
.
Get
(
"wbuf"
))
ln
,
err
=
gost
.
WSSListener
(
node
.
Addr
,
tlsCfg
,
wsOpts
)
case
"kcp"
:
config
,
er
r
:=
parseKCPConfig
(
node
.
Values
.
Get
(
"c"
))
if
er
r
!=
nil
{
return
er
r
config
,
er
:=
parseKCPConfig
(
node
.
Values
.
Get
(
"c"
))
if
er
!=
nil
{
return
er
}
ln
,
err
=
gost
.
KCPListener
(
node
.
Addr
,
config
)
case
"ssh"
:
...
...
@@ -314,7 +314,7 @@ func serve(chain *gost.Chain) error {
return
err
}
}
else
{
// By default allow for everyting
// By default allow for everyt
h
ing
whitelist
,
_
=
gost
.
ParsePermissions
(
"*:*:*"
)
}
...
...
examples/forward/udp/cli.go
View file @
4ce6f0e1
...
...
@@ -24,7 +24,7 @@ func main() {
for
i
:=
0
;
i
<
concurrency
;
i
++
{
go
udpEchoLoop
()
}
select
{}
select
{}
}
func
udpEchoLoop
()
{
...
...
node.go
View file @
4ce6f0e1
...
...
@@ -22,7 +22,7 @@ type Node struct {
// ParseNode parses the node info.
// The proxy node string pattern is [scheme://][user:pass@host]:port.
// Scheme can be d
e
vided into two parts by character '+', such as: http+tls.
// Scheme can be d
i
vided into two parts by character '+', such as: http+tls.
func
ParseNode
(
s
string
)
(
node
Node
,
err
error
)
{
if
!
strings
.
Contains
(
s
,
"://"
)
{
s
=
"auto://"
+
s
...
...
snapcraft.yaml
View file @
4ce6f0e1
...
...
@@ -13,11 +13,14 @@ apps:
plugs
:
[
network
,
network-bind
,
home
]
parts
:
go
:
source-tag
:
go1.8.3
gost
:
after
:
[
go
]
source
:
.
source-type
:
git
source-branch
:
master
plugin
:
go
go-packages
:
[
github.com/ginuerzh/gost/cmd/gost
]
go-importpath
:
github.com/ginuerzh/gost
after
:
[
go
]
go
:
source-tag
:
go1.8.3
ss.go
View file @
4ce6f0e1
...
...
@@ -150,7 +150,7 @@ func (h *shadowHandler) Handle(conn net.Conn) {
const
(
idType
=
0
// address type index
idIP0
=
1
// ip addres start index
idIP0
=
1
// ip addres
s
start index
idDmLen
=
1
// domain address length index
idDm0
=
2
// domain address start index
...
...
ssh.go
View file @
4ce6f0e1
...
...
@@ -17,7 +17,7 @@ import (
"golang.org/x/crypto/ssh"
)
// Applica
p
le SSH Request types for Port Forwarding - RFC 4254 7.X
// Applica
b
le SSH Request types for Port Forwarding - RFC 4254 7.X
const
(
DirectForwardRequest
=
"direct-tcpip"
// RFC 4254 7.2
RemoteForwardRequest
=
"tcpip-forward"
// RFC 4254 7.1
...
...
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