Update condition to check prefix protocol.