Modified 'check_ip_ver' function to use const char pointer

master
Aadhavan Srinivasan 11 months ago
parent 1359f22f71
commit eeb1bd89b8

@ -128,7 +128,7 @@ int create_remote (int network,char transport,char* address,int port,struct sock
}
int check_ip_ver(char* address) {
int check_ip_ver(const char* address) {
char buffer[16]; /* 16 chars - 128 bits - is enough to hold an ipv6 address */
if (inet_pton(AF_INET,address,buffer) == 1) {
return 4;

Loading…
Cancel
Save