mirror of
https://github.com/caddyserver/caddy.git
synced 2026-10-10 08:04:39 +00:00
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:
parent
1dc4ec2d77
commit
bb67e19d7b
5 changed files with 26 additions and 9 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue