tune_socket: use libusual for socket flags
log: wrap ipv6 address with []