Skip to content

Commit

Permalink
npc bug
Browse files Browse the repository at this point in the history
  • Loading branch information
刘河 committed Apr 8, 2019
1 parent 2330935 commit 1e81800
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ re:

//create local server secret or p2p
for _, v := range cnf.LocalServer {
go startLocalServer(v, cnf.CommonConfig)
go StartLocalServer(v, cnf.CommonConfig)
}

c.Close()
Expand Down
2 changes: 1 addition & 1 deletion client/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func startLocalFileServer(config *config.CommonConfig, t *file.Tunnel, vkey stri
logs.Error(srv.Serve(listener))
}

func startLocalServer(l *config.LocalServer, config *config.CommonConfig) error {
func StartLocalServer(l *config.LocalServer, config *config.CommonConfig) error {
listener, err := net.ListenTCP("tcp", &net.TCPAddr{net.ParseIP("0.0.0.0"), l.Port, ""})
if err != nil {
logs.Error("local listener startup failed port %d, error %s", l.Port, err.Error())
Expand Down

0 comments on commit 1e81800

Please sign in to comment.