Fix: trusted domains can have several ip's.

We now check if ip matches trusted domain properly.