Skip to content

Commit

Permalink
Require AS prefix in asn rule regex
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Dec 18, 2023
1 parent d67b1e8 commit d6e4c96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion profile/endpoints/endpoint-asn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d6e4c96

Please sign in to comment.