Add special handling for loopback interfaces