Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PreResolveTargetAddr ¶ added in v0.5.4
func PreResolveTargetAddr(clientConf *phttp.ClientConfig, target string) (string, error)
DNS resolve optimisation. When DNSCache turned off - do nothing extra, host will be resolved on every shoot. When using resolved target, don't use DNS caching logic - it is useless. If we can resolve accessible target addr - use it as target, not use caching. Otherwise just use DNS cache - we should not fail shooting, we should try to connect on every shoot. DNS cache will save resolved addr after first successful connect.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.