Use private ip if the public ip is nil
Merge pull request #1 from dissonanz/private-ip

Use private ip if the public ip is nil