Skip to content
Snippets Groups Projects
Commit e1f3b48e authored by Sébastien Blin's avatar Sébastien Blin Committed by Andreas Traczyk
Browse files

account: force TLS.enable if using a Ring account


Change-Id: I4810eea915cd9def3db8516e3ba0f76a652e0f6b
Reviewed-by: default avatarAndreas Traczyk <andreas.traczyk@savoirfairelinux.com>
parent 1bd3edae
Branches
No related tags found
No related merge requests found
......@@ -540,7 +540,7 @@ account::Info::fromDetails(const MapStringString& details)
confProperties.SRTP.rtpFallback = toBool(details[ConfProperties::SRTP::RTP_FALLBACK]);
// TLS
confProperties.TLS.listenerPort = toInt(details[ConfProperties::TLS::LISTENER_PORT]);
confProperties.TLS.enable = toBool(details[ConfProperties::TLS::ENABLED]);
confProperties.TLS.enable = details[ConfProperties::TYPE] == QString(ProtocolNames::RING)? true : toBool(details[ConfProperties::TLS::ENABLED]);
confProperties.TLS.port = toInt(details[ConfProperties::TLS::PORT]);
confProperties.TLS.certificateListFile = toStdString(details[ConfProperties::TLS::CA_LIST_FILE]);
confProperties.TLS.certificateFile = toStdString(details[ConfProperties::TLS::CERTIFICATE_FILE]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment