Closed newgenid closed 6 months ago
Thank you for your contribution but I will have to decline. This is not really a necessary change and requires to import another lib. Also please add a description.
fmt.Sprintf("%s:%d", addr, port) works incorrect for ipv6 addr. net.JoinHostPort() supports ipv6 addresses and returns "[host]:port" Without this fix UDPReceiver does not work with ipv6 addresses.
About "and requires to import another lib". We can use fmt.Sprintf("%d", port) instead strconv.Itoa(port) if You want.
I created new pr 321. Please, review this.
fmt.Sprintf("%s:%d", addr, port) works incorrect for ipv6 addr. net.JoinHostPort() supports ipv6 addresses and returns "[host]:port" Without this fix UDPReceiver does not work with ipv6 addresses.