1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-17 23:06:30 -05:00

Revert "fix some lint warnings."

This reverts commit 1955d72e3e.
This commit is contained in:
lucifer9 2019-06-29 10:21:34 +08:00
parent 1955d72e3e
commit f59c0542c9

View File

@ -135,7 +135,7 @@ func Listen(ctx context.Context, address net.Address, port net.Port, streamSetti
}()
return listener, nil
}
} else {
server := &http.Server{
Addr: serial.Concat(address, ":", port),
TLSConfig: config.GetTLSConfig(tls.WithNextProto("h2")),
@ -159,8 +159,10 @@ func Listen(ctx context.Context, address net.Address, port net.Port, streamSetti
newError("stoping serving TLS").Base(err).WriteToLog(session.ExportIDToError(ctx))
}
}()
return listener, nil
}
}
func init() {
common.Must(internet.RegisterTransportListener(protocolName, Listen))