Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Sep 28, 2024
1 parent 2ca0090 commit f6c9417
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vlib/net/util.v
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ pub fn split_address(addr string) !(string, u16) {
}
} else {
// addr only
port := 0
address := addr.all_before_last(':')
return address, p
return address, 0
}
}

0 comments on commit f6c9417

Please sign in to comment.