Sfoglia il codice sorgente

Merge pull request #70 from im-kulikov/fix/deprecation-warning

DualStack is deprecated
tags/0.16
Sergey Arkhipov 7 anni fa
parent
commit
39e7663e0c
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      config/global_ips.go

+ 1
- 1
config/global_ips.go Vedi File

21
 }
21
 }
22
 
22
 
23
 func fetchIP(network string) (net.IP, error) {
23
 func fetchIP(network string) (net.IP, error) {
24
-	dialer := &net.Dialer{DualStack: false}
24
+	dialer := &net.Dialer{FallbackDelay: -1}
25
 	client := &http.Client{
25
 	client := &http.Client{
26
 		Jar: nil,
26
 		Jar: nil,
27
 		Transport: &http.Transport{
27
 		Transport: &http.Transport{

Loading…
Annulla
Salva