From 2b7fab5a3dbe4935b4a9b72a83f97af3552be069 Mon Sep 17 00:00:00 2001 From: Shahidh K Muhammed Date: Mon, 29 Jul 2024 17:10:53 -0700 Subject: [PATCH] listen on all ipv4 and ipv6 interfaces by default connectors started using ndc sdk currently only listens on ipv4 interfaces alone. this pr changes the default value to `net::IpAddr::V6(net::Ipv6Addr::UNSPECIFIED)` which translates to `::` which would then make the server listen on all ipv4 and ipv6 interfaces --- crates/sdk/src/default_main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/sdk/src/default_main.rs b/crates/sdk/src/default_main.rs index 07b5b26..5532c6b 100644 --- a/crates/sdk/src/default_main.rs +++ b/crates/sdk/src/default_main.rs @@ -60,7 +60,8 @@ struct ServeCommand { long, value_name = "HOST IP", env = "HASURA_CONNECTOR_HOST", - default_value_t = net::IpAddr::V4(net::Ipv4Addr::UNSPECIFIED), + // listen on "::" defaulting to all IPv4 and IPv6 addresses + default_value_t = net::IpAddr::V6(net::Ipv6Addr::UNSPECIFIED), )] host: net::IpAddr, #[arg(