Add proxy protocol support

This commit is contained in:
世界 2022-08-23 21:07:35 +08:00
parent aa8cdaee22
commit 1413c5022a
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
15 changed files with 260 additions and 71 deletions

View file

@ -106,9 +106,10 @@ type InboundOptions struct {
}
type ListenOptions struct {
Listen ListenAddress `json:"listen"`
ListenPort uint16 `json:"listen_port,omitempty"`
TCPFastOpen bool `json:"tcp_fast_open,omitempty"`
UDPTimeout int64 `json:"udp_timeout,omitempty"`
Listen ListenAddress `json:"listen"`
ListenPort uint16 `json:"listen_port,omitempty"`
TCPFastOpen bool `json:"tcp_fast_open,omitempty"`
UDPTimeout int64 `json:"udp_timeout,omitempty"`
ProxyProtocol bool `json:"proxy_protocol,omitempty"`
InboundOptions
}