Removed testing code, fixed bug where domain didn't translate correctly to address
This commit is contained in:
@@ -105,12 +105,6 @@ int create_remote (int network,char transport,char* address,int port,struct sock
|
|||||||
if (socket < 0) {
|
if (socket < 0) {
|
||||||
exit(errno);
|
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;
|
int addrlen;
|
||||||
if (network == 4) {
|
if (network == 4) {
|
||||||
|
Reference in New Issue
Block a user