Fix using ip in prosody 0.9

https://code.google.com/p/lxmppd/issues/detail?id=421