Make sure to pass 'sin6_addr' to inet_pton() when converting IPv6 address

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>