Skip to content

Commit

Permalink
libruleset: allow matching exact domain
Browse files Browse the repository at this point in the history
Signed-off-by: hexian000 <hexian000@outlook.com>
  • Loading branch information
hexian000 committed Aug 19, 2023
1 parent 6e54655 commit c0f4d32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libruleset.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c0f4d32

Please sign in to comment.