Skip to content

Commit 09f3d13

Browse files
committed
chore!(stackable-webhook): Default listen address to bind to all interfaces
1 parent 41f9832 commit 09f3d13

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

crates/stackable-webhook/src/constants.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ use std::net::{IpAddr, Ipv4Addr, SocketAddr};
55
/// The default HTTPS port `8443`
66
pub const DEFAULT_HTTPS_PORT: u16 = 8443;
77

8-
/// The default IP address `127.0.0.1` the webhook server binds to.
9-
pub const DEFAULT_IP_ADDRESS: IpAddr = IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1));
8+
/// The default IP address [`Ipv4Addr::UNSPECIFIED`] (`0.0.0.0`) the webhook server binds to,
9+
/// which represents binding on all network interfaces.
10+
pub const DEFAULT_LISTEN_ADDRESS: IpAddr = IpAddr::V4(Ipv4Addr::UNSPECIFIED);
1011

11-
/// The default socket address `127.0.0.1:8443` the webhook server vinds to.
12-
pub const DEFAULT_SOCKET_ADDR: SocketAddr = SocketAddr::new(DEFAULT_IP_ADDRESS, DEFAULT_HTTPS_PORT);
12+
/// The default socket address `0.0.0.0:8443` the webhook server binds to.
13+
pub const DEFAULT_SOCKET_ADDR: SocketAddr =
14+
SocketAddr::new(DEFAULT_LISTEN_ADDRESS, DEFAULT_HTTPS_PORT);

0 commit comments

Comments
 (0)