fix issue when upstream struct change

master
dingjun 3 years ago
parent 56d70505c1
commit 4e4430e7c5

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

Loading…
Cancel
Save