gyre
gyre copied to clipboard
Invalid port * after host
hi there, with the new golang version (and its built in url lib):
if !n.bound {
_, n.port, err = bind(n.inbox, "tcp://*:*")
if err != nil {
return err
}
n.bound = true
}
in node.go
does not work anymore.
my workaround was to say:
if !n.bound {
_, n.port, err = bind(n.inbox, "tcp://*:0")
if err != nil {
return err
}
n.bound = true
}
in node.go
and:
if p == "0" {
...
in node.go
later. instead of if p == "*"
.
fyi.
I had the same issue and the changes suggested by @omani fixes it. According to the net/url docs:
validOptionalPort reports whether port is either an empty string or matches /^:\d*$/
@omani can you do a pull request or should I?
yeah will do.
done.