Fix control/protocol port gathering.