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

Aadhavan Srinivasan 2 years ago
parent 4ea9a18bcf
commit d8e78a5be7

@ -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) {

Loading…
Cancel
Save