On the generalized wormhole in the Eddington-inspired Born–Infeld gravity