Skip to content

Improper support of IPv6 addresses in static filter domain= option #1249

@gorhill

Description

@gorhill

Description

Originally report as comment at #1134 (comment):

It looks like IPv6 addresses are marked as invalid inside $domain option, is this intended? The rule is compiled, but I haven't tested whether it actually works.
image

Test case: ||example.com^$domain=::1

The syntax highlighter reports the domain= option value ::1 as invalid, though uBO internally stores the value as a valid hostname to match against the current context. Essentially, this causes the creation of a filter which will never match.

To do

Support IPv6 addresses in domain= option in syntax highlighter.

IPv6 addresses must be surrounded by square bracket, i.e. [::1], as this is how the browser reports them through its API; hence the valid filter would be ||example.com^$domain=[::1].

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixedissue has been addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions