|
|
@ -77,10 +77,8 @@ func forward(ctx context.Context, c net.Conn, data []byte, dst string) {
|
|
|
|
Version: 1,
|
|
|
|
Version: 1,
|
|
|
|
Command: proxyproto.PROXY,
|
|
|
|
Command: proxyproto.PROXY,
|
|
|
|
TransportProtocol: proxyproto.TCPv4,
|
|
|
|
TransportProtocol: proxyproto.TCPv4,
|
|
|
|
SourceAddress: raddr.IP.To4(),
|
|
|
|
SourceAddr: raddr,
|
|
|
|
DestinationAddress: net.IP{0, 0, 0, 0},
|
|
|
|
DestinationAddr: &net.TCPAddr{},
|
|
|
|
SourcePort: uint16(raddr.Port),
|
|
|
|
|
|
|
|
DestinationPort: 0,
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
switch strings.ToLower(ss[1]) {
|
|
|
|
switch strings.ToLower(ss[1]) {
|
|
|
|