mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 20:14:01 +03:00
Propagate keep alive settings from the config
This commit is contained in:
@@ -97,6 +97,12 @@ func (d *Doctor) Run(cli *CLI, version string) error {
|
||||
conf.Network.Timeout.TCP.Get(10*time.Second),
|
||||
conf.Network.Timeout.HTTP.Get(0),
|
||||
conf.Network.Timeout.Idle.Get(0),
|
||||
net.KeepAliveConfig{
|
||||
Enable: !conf.Network.KeepAlive.Disabled.Get(false),
|
||||
Idle: conf.Network.KeepAlive.Idle.Get(0),
|
||||
Interval: conf.Network.KeepAlive.Interval.Get(0),
|
||||
Count: int(conf.Network.KeepAlive.Count.Get(0)),
|
||||
},
|
||||
)
|
||||
|
||||
fmt.Println("Validate native network connectivity")
|
||||
|
||||
Reference in New Issue
Block a user