mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-04-03 03:47:37 +03:00
Add ntp protocol sniffing
This commit is contained in:
parent
52d1fcffe2
commit
9d79903da5
6 changed files with 96 additions and 0 deletions
|
@ -607,6 +607,7 @@ func (r *Router) actionSniff(
|
|||
sniff.UTP,
|
||||
sniff.UDPTracker,
|
||||
sniff.DTLSRecord,
|
||||
sniff.NTP,
|
||||
}
|
||||
}
|
||||
err = sniff.PeekPacket(
|
||||
|
|
|
@ -368,6 +368,8 @@ func (r *RuleActionSniff) build() error {
|
|||
r.StreamSniffers = append(r.StreamSniffers, sniff.SSH)
|
||||
case C.ProtocolRDP:
|
||||
r.StreamSniffers = append(r.StreamSniffers, sniff.RDP)
|
||||
case C.ProtocolNTP:
|
||||
r.PacketSniffers = append(r.PacketSniffers, sniff.NTP)
|
||||
default:
|
||||
return E.New("unknown sniffer: ", name)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue