Fix an error on the comparison between new and old wan protocol.