It compares against the string '127.0.0.1'. We should allow the IPv6 loopback
device too, but even though this seems like a trivial change I'm not sure how
to set things up properly locally to test it, so waiting until I or someone
else has some time to look this up.