mirror of https://github.com/cbeuw/Cloak
Use the buffer controls also for the redir dialer.
This commit is contained in:
parent
b6cbc0c0f0
commit
3b42b3f9c8
|
|
@ -141,7 +141,6 @@ func InitState(preParse RawConfig, worldState common.WorldState) (sta *State, er
|
|||
BypassUID: make(map[[16]byte]struct{}),
|
||||
ProxyBook: map[string]net.Addr{},
|
||||
UsedRandom: map[[32]byte]int64{},
|
||||
RedirDialer: &net.Dialer{},
|
||||
WorldState: worldState,
|
||||
}
|
||||
if preParse.CncMode {
|
||||
|
|
@ -196,6 +195,8 @@ func InitState(preParse RawConfig, worldState common.WorldState) (sta *State, er
|
|||
})
|
||||
}
|
||||
|
||||
sta.RedirDialer = &net.Dialer{Control: dialerControl}
|
||||
|
||||
if preParse.KeepAlive <= 0 {
|
||||
sta.ProxyDialer = &net.Dialer{KeepAlive: -1, Control: dialerControl}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue