fix typos

This commit is contained in:
rui.zheng 2017-08-12 21:39:08 +08:00
parent 4d5fa98857
commit 4ce6f0e15f
6 changed files with 14 additions and 11 deletions

View File

@ -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, err := parseKCPConfig(node.Values.Get("c"))
if err != nil {
return err
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 everything
whitelist, _ = gost.ParsePermissions("*:*:*")
}

View File

@ -24,7 +24,7 @@ func main() {
for i := 0; i < concurrency; i++ {
go udpEchoLoop()
}
select{}
select {}
}
func udpEchoLoop() {

View File

@ -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 devided into two parts by character '+', such as: http+tls.
// Scheme can be divided into two parts by character '+', such as: http+tls.
func ParseNode(s string) (node Node, err error) {
if !strings.Contains(s, "://") {
s = "auto://" + s

View File

@ -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

2
ss.go
View File

@ -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 address start index
idDmLen = 1 // domain address length index
idDm0 = 2 // domain address start index

2
ssh.go
View File

@ -17,7 +17,7 @@ import (
"golang.org/x/crypto/ssh"
)
// Applicaple SSH Request types for Port Forwarding - RFC 4254 7.X
// Applicable 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