[GH-ISSUE #288] enhance: Expose a listen interface #265

Open
opened 2026-04-12 06:38:39 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @LaurenceJJones on GitHub (Apr 1, 2026).
Original GitHub issue: https://github.com/fosrl/newt/issues/288

b6f13a1b55/authdaemon/server.go (L24-L33)

Currently we only expose a port option but setups where you dont want to bind to all interfaces it would be useful to allow listen or the base of the addr for a specific interface.

then b6f13a1b55/authdaemon/server.go (L126)

can be something like

s.addr = fmt.Sprintf("%s:%d", cfg.Listen, cfg.Port)

if listen is empty string then we still get the bind to all interfaces :port

brain dump maybe bind is better terminology.

Originally created by @LaurenceJJones on GitHub (Apr 1, 2026). Original GitHub issue: https://github.com/fosrl/newt/issues/288 https://github.com/fosrl/newt/blob/b6f13a1b5531e26e530f14e0d2b172c399a8deaa/authdaemon/server.go#L24-L33 Currently we only expose a port option but setups where you dont want to bind to all interfaces it would be useful to allow `listen` or the base of the `addr` for a specific interface. then https://github.com/fosrl/newt/blob/b6f13a1b5531e26e530f14e0d2b172c399a8deaa/authdaemon/server.go#L126 can be something like ```go s.addr = fmt.Sprintf("%s:%d", cfg.Listen, cfg.Port) ``` if listen is empty string then we still get the bind to all interfaces `:port` **brain dump** maybe `bind` is better terminology.
Author
Owner

@LaurenceJJones commented on GitHub (Apr 1, 2026):

related too #287

<!-- gh-comment-id:4169564014 --> @LaurenceJJones commented on GitHub (Apr 1, 2026): related too #287
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/newt#265