From 57d75957481ccb72163c7cd856cc3ec8b9ca8ef1 Mon Sep 17 00:00:00 2001 From: Fangliding Date: Mon, 19 Jan 2026 22:33:16 +0800 Subject: [PATCH] Fix empty src ip --- app/router/condition.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/router/condition.go b/app/router/condition.go index ca4f9605b081..c063bae3d83d 100644 --- a/app/router/condition.go +++ b/app/router/condition.go @@ -358,6 +358,9 @@ func NewProcessNameMatcher(names []string) *ProcessNameMatcher { } func (m *ProcessNameMatcher) Apply(ctx routing.Context) bool { + if len(ctx.GetSourceIPs()) == 0 { + return false + } srcPort := ctx.GetSourcePort().String() srcIP := ctx.GetSourceIPs()[0].String() var network string