No else blocks where the if returns
Support IPv6 in lwan_request_get_remote_address()

Switch to using inet_ntop() which supports both protocol versions and
uses a caller provided buffer to avoid thread-safety issues.