cherry-pick: all: upd dnsproxy
Merge in DNS/adguard-home from 4503-upstream-conf to master Squashed commit of the following: commit c6cb1babd4cbf9aacafe902e3d54ce17e8d2cc81 Merge: 75d85ed179d85a24
Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Mon May 23 13:06:00 2022 +0200 Merge remote-tracking branch 'origin/master' into 4503-upstream-conf commit 75d85ed1f4d8d5060800b2f8a4cde662db02ae30 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Fri May 20 13:14:16 2022 +0200 all: upd dnsproxy commit 781768d639388a60fc90631f819cfc5dd90b9eba Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Mon May 16 16:27:25 2022 +0200 all: docs commit 0dafb5b3fe11b1952d9a04294bcaaa8091b9c2a7 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Mon May 16 16:17:35 2022 +0200 all: docs commit 0d5463e4157132b0e6be78fd97eaf5a5cb8d1edc Merge: e2c86909f289f4b1
Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Mon May 16 16:01:40 2022 +0200 Merge remote-tracking branch 'origin/master' into 4503-upstream-conf # Conflicts: # go.mod # go.sum commit e2c869091b1386065076f44dbf9498a31c9d5451 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Mon May 16 15:29:17 2022 +0200 all: upd dnsrpoxy
This commit is contained in:
parent
3548a393ed
commit
5673deb391
|
@ -467,6 +467,7 @@ func separateUpstream(upstreamStr string) (upstream string, isDomainSpec bool, e
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
host = strings.TrimPrefix(host, "*.")
|
||||||
err = netutil.ValidateDomainName(host)
|
err = netutil.ValidateDomainName(host)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", true, fmt.Errorf("domain at index %d: %w", i, err)
|
return "", true, fmt.Errorf("domain at index %d: %w", i, err)
|
||||||
|
|
Loading…
Reference in New Issue