fix serv_ip issue with getaddrinfo