Skip to content

feat(daemon): --local-only flag to bind to localhost only#36

Merged
enzoevn merged 1 commit intomasterfrom
feat/local-only
Mar 19, 2026
Merged

feat(daemon): --local-only flag to bind to localhost only#36
enzoevn merged 1 commit intomasterfrom
feat/local-only

Conversation

@enzoevn
Copy link
Contributor

@enzoevn enzoevn commented Mar 19, 2026

Summary

lukan --local-only binds the daemon to 127.0.0.1 instead of 0.0.0.0, making it inaccessible from the network. The daemon auto-restarts if the bind mode changes.

Three ways to use:

  • lukan --local-only (per invocation)
  • "localOnly": true in ~/.config/lukan/config.json (persistent)
  • LUKAN_LOCAL_ONLY=1 env var

Test plan

  • All tests passing
  • Clippy + fmt clean

`lukan --local-only` binds the daemon to 127.0.0.1 instead of 0.0.0.0,
making it inaccessible from the network. Can also be set persistently
in config.json with "localOnly": true. Passed via LUKAN_LOCAL_ONLY env
var to auto-started daemon processes.
@enzoevn enzoevn merged commit e4bcd57 into master Mar 19, 2026
9 checks passed
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