Fix redir null pointer

This commit is contained in:
Andy Wang 2020-04-09 13:37:33 +01:00
parent 15f343db31
commit 77c33ff352
1 changed files with 5 additions and 4 deletions

View File

@ -150,6 +150,7 @@ func InitState(preParse RawConfig, nowFunc func() time.Time) (sta *State, err er
BypassUID: make(map[[16]byte]struct{}), BypassUID: make(map[[16]byte]struct{}),
ProxyBook: map[string]net.Addr{}, ProxyBook: map[string]net.Addr{},
usedRandom: map[[32]byte]int64{}, usedRandom: map[[32]byte]int64{},
RedirDialer: &net.Dialer{},
} }
if preParse.CncMode { if preParse.CncMode {
err = errors.New("command & control mode not implemented") err = errors.New("command & control mode not implemented")