diff --git a/src/cloud.rs b/src/cloud.rs index d740bfc..d4ae40e 100644 --- a/src/cloud.rs +++ b/src/cloud.rs @@ -281,16 +281,18 @@ impl GenericCloud GenericCloud>().join(" ")), + ("NODE_ID", format!("{:?}", info.node_id)), + ], true ); if let Some(init) = self.pending_inits.remove(&addr) { @@ -658,14 +665,18 @@ impl GenericCloud GenericCloud { self.config.call_event_script( "peer_connecting", - vec![("PEER", format!("{:?}", src)), ("IFNAME", self.device.ifname().to_owned())], + vec![ + ("PEER", format!("{:?}", addr_nice(src))), + ("IFNAME", self.device.ifname().to_owned()), + ], true ); self.pending_inits.insert(src, init); @@ -825,7 +839,7 @@ impl GenericCloud