This change leads to an additional check of the port number at build time, making invalid port values impossible.