Skip to content

Commit 3e7d77f

Browse files
committed
fix random port
1 parent 450ddf6 commit 3e7d77f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

address/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func CheckHostPort(addr string) string {
4545
}
4646
if len(hp[1]) == 0 {
4747
if v, err := RandomPort(hp[0]); err == nil {
48-
hp[1] = v
48+
return v
4949
} else {
5050
hp[1] = "80"
5151
}

0 commit comments

Comments
 (0)