[PATCH v3 11/25] conf: Move check for mapping port 0 to caller