fix -6 params not work on client. fix IPv6 support
Merge pull request #36 from ZeR0-Wu/master

fix IPv6 support and the '-6' option