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:
parent
9046bea466
commit
f5642b4075
@ -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,
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user