fix without IPv6
Merge pull request #117 from fperrad/master

fix without IPv6