@@ -27,7 +27,7 @@ func NewLegacyOptions() *LegacyOptions {
2727 LegacyUpstreams: LegacyUpstreams{
2828 PassHostHeader: true,
2929 ProxyWebSockets: true,
30− FlushInterval: time.Duration(1) * time.Second,
30+ FlushInterval: DefaultUpstreamFlushInterval,
3131 },
3232
3333 LegacyHeaders: LegacyHeaders{
@@ -62,7 +62,7 @@ type LegacyUpstreams struct {
6262func legacyUpstreamsFlagSet() *pflag.FlagSet {
6363 flagSet := pflag.NewFlagSet("upstreams", pflag.ExitOnError)
6464
65− flagSet.Duration("flush-interval", time.Duration(1)*time.Second, "period between response flushing when streaming responses")
65+ flagSet.Duration("flush-interval", DefaultUpstreamFlushInterval, "period between response flushing when streaming responses")
6666 flagSet.Bool("pass-host-header", true, "pass the request Host Header to upstream")
6767 flagSet.Bool("proxy-websockets", true, "enables WebSocket proxying")
6868 flagSet.Bool("ssl-upstream-insecure-skip-verify", false, "skip validation of certificates presented when using HTTPS upstreams")