scionproto / scion

SCION Internet Architecture
https://scion.org
Apache License 2.0
401 stars 161 forks source link

pkg/snet: format UDPAddr to comply with net.SplitHostPort #4648

Closed oncilla closed 3 weeks ago

oncilla commented 3 weeks ago

Change the snet.UDPAddr.String() method to return the address in a format that is compatible with net.SplitHostPort. This will allow non SCION aware applications to extract the host and port part without the need to understand it is a SCION address.

jiceatscion commented 3 weeks ago

This change is Reviewable

jiceatscion commented 3 weeks ago

No objection, but... does SplitHostPort understand something like: [1-ff00:0:320,2001::1%some-zone]:20000 ^ ^ anyway?