fixup! core/ui: allow specifying port and protocol for gateways (bgo #712710)