changement ip par defaut

This commit is contained in:
Gilles Soulier
2026-05-31 14:01:28 +02:00
parent 7fb47ffde8
commit a1e1aa40d8
10 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
[server]
ip = "10.0.0.50"
ip = "10.0.0.82"
port = 9999
[protocols.udp]
+3 -3
View File
@@ -6,7 +6,7 @@ fn test_config_parse_complet() {
let mut f = NamedTempFile::new().unwrap();
write!(f, r#"
[server]
ip = "10.0.0.50"
ip = "10.0.0.82"
port = 9999
[protocols.udp]
@@ -26,7 +26,7 @@ udp = true
mqtt = false
"#).unwrap();
let cfg = nanometrics_agent::config::load(f.path()).unwrap();
assert_eq!(cfg.server.ip, "10.0.0.50");
assert_eq!(cfg.server.ip, "10.0.0.82");
assert_eq!(cfg.server.port, 9999);
assert!(cfg.protocols.udp.enabled);
assert!(cfg.protocols.mqtt.enabled);
@@ -40,7 +40,7 @@ fn test_config_mqtt_absent() {
let mut f = NamedTempFile::new().unwrap();
write!(f, r#"
[server]
ip = "10.0.0.50"
ip = "10.0.0.82"
port = 9999
[protocols.udp]