• Fix getting local ports for contact headers when using TLS.