Przeglądaj źródła

Add HTTP timeout

tags/v2.0.0-rc1
9seconds 5 lat temu
rodzic
commit
e167b85d3b
2 zmienionych plików z 3 dodań i 0 usunięć
  1. 2
    0
      config/config.go
  2. 1
    0
      example.config.toml

+ 2
- 0
config/config.go Wyświetl plik

@@ -34,6 +34,7 @@ type Config struct {
34 34
 		} `json:"public-ip"`
35 35
 		Timeout struct {
36 36
 			TCP  TypeDuration `json:"tcp"`
37
+			HTTP TypeDuration `json:"http"`
37 38
 			Idle TypeDuration `json:"idle"`
38 39
 		} `json:"timeout"`
39 40
 		DOHIP   TypeIP    `json:"doh-ip"`
@@ -103,6 +104,7 @@ type configRaw struct {
103 104
 		} `toml:"public-ip" json:"public-ip,omitempty"`
104 105
 		Timeout struct {
105 106
 			TCP  string `toml:"tcp" json:"tcp,omitempty"`
107
+			HTTP string `toml:"http" json:"http,omitempty"`
106 108
 			Idle string `toml:"idle" json:"idle,omitempty"`
107 109
 		} `toml:"timeout" json:"timeout,omitempty"`
108 110
 		DOHIP   string   `toml:"doh-ip" json:"doh-ip,omitempty"`

+ 1
- 0
example.config.toml Wyświetl plik

@@ -111,6 +111,7 @@ ipv6 = ""
111 111
 # https://www.ndss-symposium.org/wp-content/uploads/2020/02/23087-paper.pdf
112 112
 [network.timeout]
113 113
 tcp = "5s"
114
+http = "10s"
114 115
 idle = "1m"
115 116
 
116 117
 # FakeTLS can compare timestamps to prevent probes. Each message has

Ładowanie…
Anuluj
Zapisz