From e7c43aa0db262a9d90b2882c39e36d233420c04d Mon Sep 17 00:00:00 2001 From: Reuben Miller Date: Mon, 29 Jul 2024 17:40:15 +0200 Subject: [PATCH] bind to localhost instead of all interfaces Signed-off-by: Reuben Miller --- crates/extensions/tedge_mqtt_bridge/tests/bridge.rs | 2 +- crates/tests/mqtt_tests/src/test_mqtt_server.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/extensions/tedge_mqtt_bridge/tests/bridge.rs b/crates/extensions/tedge_mqtt_bridge/tests/bridge.rs index eb5ce6dfe56..52fb85f0c37 100644 --- a/crates/extensions/tedge_mqtt_bridge/tests/bridge.rs +++ b/crates/extensions/tedge_mqtt_bridge/tests/bridge.rs @@ -647,7 +647,7 @@ fn get_rumqttd_config(port: u16) -> Config { let server_config = ServerSettings { name: port.to_string(), - listen: ([0, 0, 0, 0], port).into(), + listen: ([127, 0, 0, 1], port).into(), tls: None, next_connection_delay_ms: 1, connections: connections_settings, diff --git a/crates/tests/mqtt_tests/src/test_mqtt_server.rs b/crates/tests/mqtt_tests/src/test_mqtt_server.rs index 7e322ef3833..7c3ded468f0 100644 --- a/crates/tests/mqtt_tests/src/test_mqtt_server.rs +++ b/crates/tests/mqtt_tests/src/test_mqtt_server.rs @@ -178,7 +178,7 @@ fn get_rumqttd_config(port: u16) -> Config { let server_config = ServerSettings { name: "1".to_string(), - listen: ([0, 0, 0, 0], port).into(), + listen: ([127, 0, 0, 1], port).into(), tls: None, next_connection_delay_ms: 1, connections: connections_settings,