diff --git a/cmd/sshpiperd/daemon.go b/cmd/sshpiperd/daemon.go index d1ea0565..e3612c61 100644 --- a/cmd/sshpiperd/daemon.go +++ b/cmd/sshpiperd/daemon.go @@ -267,7 +267,10 @@ func (d *daemon) run() error { return nil, nil } } - return nextUpHook(b) + if nextUpHook != nil { + return nextUpHook(b) + } + return b, nil } }