fix -6 params not work on client. fix IPv6 support