diff --git a/bouncer.go b/bouncer.go index 8b6f611..e28d8f4 100644 --- a/bouncer.go +++ b/bouncer.go @@ -529,7 +529,7 @@ func handleNoStreamCache(bouncer *Bouncer, remoteIP string) (string, error) { default: bouncer.log.Debug("handleStreamCache:unknownType " + decision.Type) } - if isLiveMode { + if isLiveMode && bouncer.defaultDecisionTimeout > 0 { durationSecond := int64(duration.Seconds()) if bouncer.defaultDecisionTimeout < durationSecond { durationSecond = bouncer.defaultDecisionTimeout