fixed bug issue of #1213
fixed initServer failed if no IPV4 or no IPV6
fixed initServer fail while having no IPv6 nor IPv4
Merge pull request #1214 from kaoshijuan/unstable

fixed initServer fail problem
Fix for issue #1214 simplified.