Fixing a typo that caused trouble for ipv6 udp

A typo in if statement that I changed prevented ipv6 udp sockets
from updating after binding. Leaving host, port etc empty.