mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-02 11:56:53 +00:00
npc bug
This commit is contained in:
@@ -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())
|
||||
|
Reference in New Issue
Block a user