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

Open
opened 2026-04-24 20:03:56 -05:00 by GiteaMirror · 2 comments
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.
GiteaMirror added the stale label 2026-04-24 20:03:56 -05:00
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
Author
Owner

@github-actions[bot] commented on GitHub (Apr 16, 2026):

This issue has been automatically marked as stale due to 14 days of inactivity. It will be closed in 14 days if no further activity occurs.

<!-- gh-comment-id:4256635357 --> @github-actions[bot] commented on GitHub (Apr 16, 2026): This issue has been automatically marked as stale due to 14 days of inactivity. It will be closed in 14 days if no further activity occurs.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/newt#1455