aboutsip / pkts

Pure java based pcap library capable of reading and writing to/from pcaps.
Other
198 stars 92 forks source link

Via header output does not enclose IPv6 host address with brackets #143

Open teerapap opened 1 year ago

teerapap commented 1 year ago

According to RFC3261, IPv6 address in host part of the Via header must be enclosed with brackets ('[' and ']')

Observed: Via: SIP/2.0/UDP 2001:0db8:85a3:0042:1000:8a2e:0370:7334:5088;branch=hello

Expected: Via: SIP/2.0/UDP [2001:0db8:85a3:0042:1000:8a2e:0370:7334]:5088;branch=hello