fix ip resolution function
Merge pull request #7 from euforic/ipresolution

fix ip resolution function