From 890a206c4a1f9a7440b8ced63845d4e244120508 Mon Sep 17 00:00:00 2001 From: Andy Dunstall Date: Wed, 14 Aug 2024 13:36:48 +0100 Subject: [PATCH] server: remove proxy timeout validation (#151) The proxy timeout should be optional. --- server/config/config.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/server/config/config.go b/server/config/config.go index 0b797b8..eec52e2 100644 --- a/server/config/config.go +++ b/server/config/config.go @@ -109,9 +109,6 @@ func (c *ProxyConfig) Validate() error { if c.BindAddr == "" { return fmt.Errorf("missing bind addr") } - if c.Timeout == 0 { - return fmt.Errorf("missing timeout") - } if err := c.TLS.Validate(); err != nil { return fmt.Errorf("tls: %w", err) }