httpsPort property
Both upstream ports, because the two legs land on different ones: /connect is HTTPS to HttpsPort, and the channel is a raw TCP socket to TlsPort. HostAgent allocates them separately from one range, so neither can be derived from the other.
Implementation
int httpsPort;