]> Cypherpunks repositories - gostls13.git/commit
net: allow single dot in resolv.conf search statement
authorAndy Pan <panjf2000@gmail.com>
Mon, 15 Aug 2022 15:09:00 +0000 (23:09 +0800)
committerGopher Robot <gobot@golang.org>
Fri, 19 Aug 2022 03:01:14 +0000 (03:01 +0000)
commit55ecc3a88670c14bbbfc9d6c96cf65891cc608f5
treee6cd2e093bf5a3fd22403e63082d5e739a6e7c54
parentee833ed72e8ccfdd2193b0e6c0223ee8eb99b380
net: allow single dot in resolv.conf search statement

A single dot in a search statement doesn't affect DNS lookup, so just ignore it and a syntax error.

Fixes #54124

Change-Id: Idd43bd34c5c16af50cba51f0b6e24f992eec6e57
Reviewed-on: https://go-review.googlesource.com/c/go/+/423875
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/net/dnsconfig_unix.go
src/net/dnsconfig_unix_test.go
src/net/testdata/search-single-dot-resolv.conf [new file with mode: 0644]