Fixed the fqdn problem in the curvecp handshake. Now checks for '0.0.0.0' and substitutes '127.0.0.1'
for the host used to compute the fqdn