Open PragmaticCypher opened 5 years ago
I'd like to see this change. I'm not sure whether it's compatible with the multiserver-address syntax, but if so I think this would just be a change to multiserver.
@christianbundy but it is already used. The ws plugin in multiserver uses URL so tests in ssb-invite are failing for me, because it generates an addr with [::] :)
Right, it's used in the websocket plugin but I don't think it works in the net plugin, does it?
The IPv6 address format for a Scuttlebutt reference is:
A better way may be the Uniform Identifier Resource (URI) standard for IPv6 addresses (RFC 3986 section 3.2.2), which uses brackets to separate the address from the port:
This may have better parsing support across programming languages. For instance, Golang's 'net' package will only parse the URI formatted address.