diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-10 04:50:07 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-10 05:11:32 +0900 |
| commit | 776650af01d56d1c38861420de7f4a077f0a61f8 (patch) | |
| tree | 04c4f7c5bf412de50b6cf13a240cb7c0fa77c5b5 /hst/config.go | |
| parent | 109aaee6593ac6e72d23b817e5b75292c2ed7bed (diff) | |
hst/config: negative WaitDelay bypasses default
This behaviour might be useful, so do not lock it out. This change also fixes an oversight where the unchecked value is used to determine ForwardCancel.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/config.go')
| -rw-r--r-- | hst/config.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hst/config.go b/hst/config.go index 9f4ee2f7..a0843aeb 100644 --- a/hst/config.go +++ b/hst/config.go @@ -67,8 +67,8 @@ type ( Hostname string `json:"hostname,omitempty"` // Duration in nanoseconds to wait for after interrupting the initial process. - // Defaults to [WaitDelayDefault] if less than or equals to zero, - // or [WaitDelayMax] if greater than [WaitDelayMax]. + // Defaults to [WaitDelayDefault] if zero, or [WaitDelayMax] if greater than [WaitDelayMax]. + // Values lesser than zero is equivalent to zero, bypassing [WaitDelayDefault]. WaitDelay time.Duration `json:"wait_delay,omitempty"` // Emit Flatpak-compatible seccomp filter programs. |
