keepsimple1 / mdns-sd

Rust library for mDNS based Service Discovery
Apache License 2.0
89 stars 38 forks source link

use human-readable address in error log of send_packet #155

Closed keepsimple1 closed 7 months ago

keepsimple1 commented 7 months ago

SockAddr of socket2 is not logging friendly: even its debug format is not human-readable:

SockAddr { ss_len: 0, ss_family: 2, len: 16 }

This patch is to log the actual human-readable addresses using SocketAddr of std. Now the log would read:

224.0.0.251:5353