1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 17:46:58 -05:00

L -> l, A -> a

This commit is contained in:
RPRX 2020-08-26 05:01:35 +00:00 committed by GitHub
parent 9046bea466
commit f5642b4075
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@ func ListenTCP(ctx context.Context, address net.Address, port net.Port, streamSe
if err != nil {
return nil, newError("failed to listen TCP on", address, ":", port).Base(err)
}
newError("Listening TCP on ", address, ":", port).WriteToLog(session.ExportIDToError(ctx))
newError("listening TCP on ", address, ":", port).WriteToLog(session.ExportIDToError(ctx))
tcpSettings := streamSettings.ProtocolSettings.(*Config)
var l *Listener
@ -47,7 +47,7 @@ func ListenTCP(ctx context.Context, address net.Address, port net.Port, streamSe
config: tcpSettings,
addConn: handler,
}
newError("Accepting PROXY protocol").AtWarning().WriteToLog(session.ExportIDToError(ctx))
newError("accepting PROXY protocol").AtWarning().WriteToLog(session.ExportIDToError(ctx))
} else {
l = &Listener{
listener: listener,

View File

@ -70,14 +70,14 @@ func ListenWS(ctx context.Context, address net.Address, port net.Port, streamSet
if err != nil {
return nil, newError("failed to listen TCP(for WS) on", address, ":", port).Base(err)
}
newError("Listening TCP(for WS) on ", address, ":", port).WriteToLog(session.ExportIDToError(ctx))
newError("listening TCP(for WS) on ", address, ":", port).WriteToLog(session.ExportIDToError(ctx))
wsSettings := streamSettings.ProtocolSettings.(*Config)
if wsSettings.AcceptProxyProtocol {
policyFunc := func(upstream net.Addr) (proxyproto.Policy, error) { return proxyproto.REQUIRE, nil }
listener = &proxyproto.Listener{Listener: listener, Policy: policyFunc}
newError("Accepting PROXY protocol").AtWarning().WriteToLog(session.ExportIDToError(ctx))
newError("accepting PROXY protocol").AtWarning().WriteToLog(session.ExportIDToError(ctx))
}
if config := v2tls.ConfigFromStreamSettings(streamSettings); config != nil {