Skip to content

Commit 7c54c5a

Browse files
committed
fix
1 parent 40fef09 commit 7c54c5a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vlib/net/util.v

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ pub fn split_address(addr string) !(string, u16) {
3434
}
3535
} else {
3636
// addr only
37-
port := 0
3837
address := addr.all_before_last(':')
39-
return address, p
38+
return address, 0
4039
}
4140
}

0 commit comments

Comments
 (0)