Support assigning 0 to http/https port for OS assigned port.