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
This commit is contained in:
Francis Lavoie
2020-05-21 15:09:49 -04:00
committed by GitHub
parent 1dc4ec2d77
commit bb67e19d7b
5 changed files with 26 additions and 9 deletions

View File

@ -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")