libvncserver
libvncserver copied to clipboard
rfbInitClient() does not parse IPv6 addresses correctly
char* colon = NULL;
size_t colon_count = 0;
char *str = argv[i];
while(str && *str) {
if(*str == ':')
++colon_count;
++str;
}
if(colon_count > 1) {
/* probably IPv6, need [] to parse port */
char *closingbracket = strrchr(argv[i],']');
if(closingbracket && *(closingbracket+1) == ':')
colon = closingbracket+1;
} else
colon = strrchr(argv[i],':');
Greetings!
Is there any progress on this bug? My open-source project uses libvncclient and I cannot gain access to IPv6 servers - I receive "Unable to assign address" from libvncclient when trying.
Sorry, due to certain circumstances, I'm unable to submit a patch.
Thanks! :+1:
Hi @willbprog127 this will still take some time if I do it, I'm currently overwhelmed with job-related work.