From d6e4c96117cccce58d4bdba1b0974f7c5af1cb3f Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 18 Dec 2023 17:07:42 +0100 Subject: [PATCH] Require AS prefix in asn rule regex --- profile/endpoints/endpoint-asn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profile/endpoints/endpoint-asn.go b/profile/endpoints/endpoint-asn.go index fd5b11dc..898d9bfc 100644 --- a/profile/endpoints/endpoint-asn.go +++ b/profile/endpoints/endpoint-asn.go @@ -9,7 +9,7 @@ import ( "github.com/safing/portmaster/intel" ) -var asnRegex = regexp.MustCompile("^(AS)?[0-9]+$") +var asnRegex = regexp.MustCompile("^AS[0-9]+$") // EndpointASN matches ASNs. type EndpointASN struct {