Add routeOnly sniffing option

This commit is contained in:
世界 committed 2021-10-22 11:57:23 +08:00
1 parent 6c9e57d624
commit a3023e43ef
8 files changed
+121 -89

No files matched your search

+6 -1
View File
@@ -70,7 +70,12 @@ func (ctx *Context) GetTargetDomain() string {
if ctx.Outbound == nil || !ctx.Outbound.Target.IsValid() {
return ""
}
dest := ctx.Outbound.Target
dest := ctx.Outbound.RouteTarget
if dest.IsValid() && dest.Address.Family().IsDomain() {
return dest.Address.Domain()
}
dest = ctx.Outbound.Target
if !dest.Address.Family().IsDomain() {
return ""
}