index: set `port` to null when it is the protocol default port (80 / 443)