resolve-hostnames: sync get_socket_info func with the one in trilobite project
dev: +git_terminate