Add an extra retry since ODoH servers are currently unstable
This commit is contained in:
parent
f5a69c3bdc
commit
083fa0ad3c
|
@ -835,7 +835,7 @@ func _fetchODoHTargetInfo(proxy *Proxy, name string, stamp stamps.ServerStamp, i
|
||||||
func fetchODoHTargetInfo(proxy *Proxy, name string, stamp stamps.ServerStamp, isNew bool) (ServerInfo, error) {
|
func fetchODoHTargetInfo(proxy *Proxy, name string, stamp stamps.ServerStamp, isNew bool) (ServerInfo, error) {
|
||||||
var err error
|
var err error
|
||||||
var serverInfo ServerInfo
|
var serverInfo ServerInfo
|
||||||
for i := 0; i < 2; i += 1 {
|
for i := 0; i < 3; i += 1 {
|
||||||
serverInfo, err = _fetchODoHTargetInfo(proxy, name, stamp, isNew)
|
serverInfo, err = _fetchODoHTargetInfo(proxy, name, stamp, isNew)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue