Pull request 1769: 5584-invalid-host-panic
Merge in DNS/adguard-home from 5584-invalid-host-panic to master Updates #5584. Squashed commit of the following: commit a09b59e279089c86b785b3c839dff10b3f327779 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Tue Mar 14 17:05:12 2023 +0300 all: upd golibs, add test
This commit is contained in:
@@ -608,6 +608,11 @@ func TestUniqueRules_ParseLine(t *testing.T) {
|
||||
line: ``,
|
||||
wantIP: netip.Addr{},
|
||||
wantHosts: nil,
|
||||
}, {
|
||||
name: "bad_hosts",
|
||||
line: ipStr + ` bad..host bad._tld empty.tld. ok.host`,
|
||||
wantIP: ip,
|
||||
wantHosts: []string{"ok.host"},
|
||||
}}
|
||||
|
||||
for _, tc := range testCases {
|
||||
|
||||
Reference in New Issue
Block a user