diff --git a/src/installer/step/mod.rs b/src/installer/step/mod.rs index eea3d24f..cbb6b774 100644 --- a/src/installer/step/mod.rs +++ b/src/installer/step/mod.rs @@ -339,6 +339,17 @@ impl Step for DefineCoordinator { self.host.valid = SocketAddr::from_str(&self.host.value).is_ok(); + if !self.host.valid { + // trim spaces at the end if any. + let clean_value = self.host.value.trim_end(); + + let value = format!("{}:8383", clean_value).to_string(); + self.host.valid = SocketAddr::from_str(&value).is_ok(); + if self.host.valid { + self.host.value = value; + } + } + if !self.host.valid || !self.noise_key.valid { return false; }