Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EscapeString ¶
func UnescapeString ¶
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) ParseRule ¶
ParseRule parses AdBlock rule with dnsrewrite option AdBlock syntax: https://github.com/AdguardTeam/AdGuardHome/wiki/Hosts-Blocklists#adblock-style examples:
|4.3.2.1.in-addr.arpa^$dnsrewrite=NOERROR;PTR;example.net. |2.0.0.0.0.0.0.0.4.f.7.0.0.0.0.0.0.0.4.3.0.0.0.0.8.b.6.0.2.0.a.2.ip6.arpa^$dnsrewrite=NOERROR;PTR;example.net. |ya.ru^$dnsrewrite=NOERROR;A;1.2.3.3 |ya.ru^$dnsrewrite=NOERROR;AAAA;::1
Limitation:
- only dnsrewrite
- only strict match
Click to show internal directories.
Click to hide internal directories.