Skip to content

Support configurable bind addresses#48

Merged
raine merged 2 commits into
raine:mainfrom
mulfyx:feat/configurable-bind-address
Jul 13, 2026
Merged

Support configurable bind addresses#48
raine merged 2 commits into
raine:mainfrom
mulfyx:feat/configurable-bind-address

Conversation

@mulfyx

@mulfyx mulfyx commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add bindAddress config and CCP_BIND_ADDRESS environment override
  • apply the configured IP in both plain and monitor serve modes
  • keep 127.0.0.1 as the safe default and report invalid IPs clearly
  • display IPv6 listen URLs correctly and log the effective bind address
  • document the exposure risk for non-loopback bindings

This makes the proxy usable in containerized deployments without changing the
default host behavior. The proxy still binds only to loopback unless explicitly
configured otherwise.

Testing

  • cargo test --locked

mulfyx and others added 2 commits July 13, 2026 21:32
The monitor header always displayed the loopback endpoint even when the proxy
listened on another interface. This made the TUI misleading and could obscure
network exposure from an explicit non-loopback configuration.

Pass the listener's effective socket address into the monitor, render its URL
in the header, and cover IPv6 formatting in the TUI test. Update the serve
command reference to describe the configurable bind address.
@raine raine force-pushed the feat/configurable-bind-address branch from 28dea96 to ece0c1b Compare July 13, 2026 18:32
@raine raine merged commit bd3aa54 into raine:main Jul 13, 2026
@raine

raine commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Thanks

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.

2 participants