Use private ip if the public ip is nil
Don't set the public IP to the private IP value
Merge pull request #8 from dissonanz/private-ip

Use private ip if the public ip is nil