Removed testing code, fixed bug where domain didn't translate correctly to address

This commit is contained in:
2023-03-08 19:19:35 -06:00
parent 1ab6ffe44f
commit 69da015727

View File

@@ -105,12 +105,6 @@ int create_remote (int network,char transport,char* address,int port,struct sock
if (socket < 0) {
exit(errno);
}
unsigned char ip[INET_ADDRSTRLEN];
struct sockaddr_in6 *in6 = (struct sockaddr_in6 *)remote_addr_struct;
memcpy(ip, in6->sin6_addr.s6_addr, 16);
char ip_str[254];
printf("%s\n",inet_ntop(AF_INET6,ip,ip_str,254));
int addrlen;
if (network == 4) {