We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc67b3d commit e04602aCopy full SHA for e04602a
1 file changed
dash-spv-ffi/src/config.rs
@@ -177,7 +177,7 @@ pub unsafe extern "C" fn dash_spv_ffi_config_add_peer(
177
}
178
179
// 3) Must be a hostname - reject empty or missing hostname
180
- if addr_str.is_empty() {
+ if addr_str.is_empty() || addr_str.starts_with(':') {
181
set_last_error("Empty or missing hostname");
182
return FFIErrorCode::InvalidArgument as i32;
183
0 commit comments