Cast generic sockaddr to the appropriate sockaddr_ AF and switch inet_ntop argument accordingly. Intended to fix issue reported on ~sircmpwn/gmni-discuss: "Logged IPv4 addresses are wrong"
So that you can just direct stdout to a file to get the request log.
This probably leaves a bit to be desired tbh