ZEN-10410, ZEN-11825

What's the reason for this change? The previous version looks safer. Are you absolutely sure that obj will always have an ip attribute?