Add domain sniffer

This commit is contained in:
世界 committed 2022-07-06 12:39:44 +08:00
1 parent 2d9203ee74
commit 86a38a1c7e
15 files changed
+603 -18

No files matched your search

+6 -4
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 {