mirror of https://github.com/cbeuw/Cloak
Default StreamTimeout to 300 seconds
This commit is contained in:
parent
2c9bfc404c
commit
8c477fb2b5
|
|
@ -90,7 +90,11 @@ func (sta *State) ParseConfig(conf string) (err error) {
|
|||
sta.LocalAPIRouter = manager.Router
|
||||
}
|
||||
|
||||
if preParse.StreamTimeout == 0 {
|
||||
sta.Timeout = time.Duration(300) * time.Second
|
||||
} else {
|
||||
sta.Timeout = time.Duration(preParse.StreamTimeout) * time.Second
|
||||
}
|
||||
|
||||
redirAddr := preParse.RedirAddr
|
||||
colonSep := strings.Split(redirAddr, ":")
|
||||
|
|
|
|||
Loading…
Reference in New Issue