Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPlainBootstrap ¶ added in v4.2.0
NewPlainBootstrap returns a customized *net.Resolver which Dial func is modified to dial s. s SHOULD be a literal IP address and the port SHOULD also be literal. Port can be omitted. In this case, the default port is :53. e.g. NewPlainBootstrap("8.8.8.8"), NewPlainBootstrap("127.0.0.1:5353") If s is empty, NewPlainBootstrap returns nil. (A nil *net.Resolver is valid in net.Dialer.) Note that not all platform support a customized *net.Resolver. It also depends on the version of go runtime. See the package docs from the net package for more info.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.