From c0f4d32b7d814407eef6707ce365823b66eadc1b Mon Sep 17 00:00:00 2001 From: hexian000 Date: Sat, 19 Aug 2023 23:09:08 +0800 Subject: [PATCH] libruleset: allow matching exact domain Signed-off-by: hexian000 --- libruleset.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libruleset.lua b/libruleset.lua index 3d57906..1b067ff 100644 --- a/libruleset.lua +++ b/libruleset.lua @@ -224,7 +224,7 @@ end function match.domain(s) if not s:startswith(".") then - errorf("domain matcher should starts with \".\": %q", s) + return match.exact(s) end return function(addr) local host, port = splithostport(addr)