Add domain sniffer

This commit is contained in:
世界
2022-07-06 12:39:44 +08:00
parent 625bc649ee
commit 3e2dddfb16
15 changed files with 603 additions and 18 deletions

View File

@@ -77,10 +77,12 @@ func (h *Inbound) UnmarshalJSON(bytes []byte) error {
}
type ListenOptions struct {
Listen ListenAddress `json:"listen"`
Port uint16 `json:"listen_port"`
TCPFastOpen bool `json:"tcp_fast_open,omitempty"`
UDPTimeout int64 `json:"udp_timeout,omitempty"`
Listen ListenAddress `json:"listen"`
Port uint16 `json:"listen_port"`
TCPFastOpen bool `json:"tcp_fast_open,omitempty"`
UDPTimeout int64 `json:"udp_timeout,omitempty"`
SniffEnabled bool `json:"sniff,omitempty"`
SniffOverrideDestination bool `json:"sniff_override_destination,omitempty"`
}
type SimpleInboundOptions struct {