fix ipaddr strlen on win