From bb67e19d7bacd70a13647538c8e9820eb42090b2 Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Thu, 21 May 2020 15:09:49 -0400 Subject: cmd: hash-password: Fix broken terminal state on SIGINT (#3416) * caddyauth: Fix hash-password broken terminal state on SIGINT * caddycmd: Move TrapSignals calls to only subcommands that run long --- modules/caddyhttp/reverseproxy/command.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/caddyhttp/reverseproxy/command.go') diff --git a/modules/caddyhttp/reverseproxy/command.go b/modules/caddyhttp/reverseproxy/command.go index 6de052e..a5939a2 100644 --- a/modules/caddyhttp/reverseproxy/command.go +++ b/modules/caddyhttp/reverseproxy/command.go @@ -66,6 +66,8 @@ default, all incoming headers are passed through unmodified.) } func cmdReverseProxy(fs caddycmd.Flags) (int, error) { + caddy.TrapSignals() + from := fs.String("from") to := fs.String("to") changeHost := fs.Bool("change-host-header") -- cgit v1.2.3