Make network as a separae interface

This commit is contained in:
9seconds
2021-03-11 04:57:07 +03:00
parent 299c6478c2
commit 24add0dce4
8 changed files with 90 additions and 63 deletions
+2 -2
View File
@@ -412,7 +412,7 @@ type config struct {
} `json:"public-ip"`
Timeout struct {
TCP configTypeDuration `json:"tcp"`
HTTP configTypeDuration `json:"http"`
Idle configTypeDuration `json:"idle"`
} `json:"timeout"`
DOHIP configTypeIP `json:"doh-ip"`
Proxies []configTypeURL `json:"proxies"`
@@ -478,7 +478,7 @@ type configRaw struct {
} `toml:"public-ip" json:"public-ip"`
Timeout struct {
TCP string `toml:"tcp" json:"tcp"`
HTTP string `toml:"http" json:"http"`
Idle string `toml:"idle" json:"idle"`
} `toml:"timeout" json:"timeout"`
DOHIP string `toml:"doh-ip" json:"doh-ip"`
Proxies []string `toml:"proxies" json:"proxies"`