summaryrefslogtreecommitdiff
path: root/internal/sshd
diff options
context:
space:
mode:
Diffstat (limited to 'internal/sshd')
-rw-r--r--internal/sshd/sshd.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/sshd/sshd.go b/internal/sshd/sshd.go
index a9cd302..4d4d6d5 100644
--- a/internal/sshd/sshd.go
+++ b/internal/sshd/sshd.go
@@ -26,7 +26,6 @@ const (
StatusReady
StatusOnShutdown
StatusClosed
- ProxyHeaderTimeout = 90 * time.Second
)
type Server struct {
@@ -97,7 +96,7 @@ func (s *Server) listen(ctx context.Context) error {
sshListener = &proxyproto.Listener{
Listener: sshListener,
Policy: s.requirePolicy,
- ReadHeaderTimeout: ProxyHeaderTimeout,
+ ReadHeaderTimeout: time.Duration(s.Config.Server.ProxyHeaderTimeout),
}
log.ContextLogger(ctx).Info("Proxy protocol is enabled")