Skip to content

Commit e04602a

Browse files
committed
starts
1 parent fc67b3d commit e04602a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dash-spv-ffi/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ pub unsafe extern "C" fn dash_spv_ffi_config_add_peer(
177177
}
178178

179179
// 3) Must be a hostname - reject empty or missing hostname
180-
if addr_str.is_empty() {
180+
if addr_str.is_empty() || addr_str.starts_with(':') {
181181
set_last_error("Empty or missing hostname");
182182
return FFIErrorCode::InvalidArgument as i32;
183183
}

0 commit comments

Comments
 (0)