Skip to content

docs: fix the keepAlive configuration key in the README - #396

Merged
claudiodangelis merged 1 commit into
mainfrom
docs/fix-keepalive-config-key
Nov 21, 2026
Merged

claudiodangelis merged 1 commit into
mainfrom
docs/fix-keepalive-config-key

Conversation

@claudiodangelis

Copy link
Copy Markdown
Owner

The README documents the keep-alive configuration key, but qrcp reads keepAlive (v.GetBool("keepAlive") in config/config.go). Viper keys are case-insensitive, so keepalive also works, but keep-alive is a different key and is silently ignored.

Checked with a build of main, downloading once with a browser user agent and seeing whether the server stays up:

Setting Server after download
keep-alive: true in config.yml exits (ignored)
keepAlive: true in config.yml stays up
keepalive: true in config.yml stays up
QRCP_KEEPALIVE=true stays up
--keep-alive flag stays up

Also adds the reversed key, which is read from the configuration and set by qrcp config but was missing from the table.

The configuration key is keepAlive (keys are case-insensitive, so
keepalive works too); keep-alive is not read, so setting it has no
effect. Also document the reversed key.
@claudiodangelis
claudiodangelis merged commit 193a4e0 into main Nov 21, 2026
6 checks passed
@claudiodangelis
claudiodangelis deleted the docs/fix-keepalive-config-key branch November 21, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant