Fix server getaddrinfo error