mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 19:56:51 +08:00
fix: close idle connections
This commit is contained in:
parent
dd66f8826c
commit
1fc9e0be99
|
@ -81,7 +81,7 @@ func (dc *dohClient) doRequest(req *http.Request) (msg *D.Msg, err error) {
|
|||
} else {
|
||||
if dc.firstTest.CAS(true, false) {
|
||||
dc.supportH3.Store(true)
|
||||
_ = dc.transport.CloseIdleConnections
|
||||
dc.transport.CloseIdleConnections()
|
||||
dc.transport = nil
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user