Mercurial > hg > orthanc
diff OrthancServer/Sources/main.cpp @ 5854:65f8c6dfba50 find-refactoring
cleanup
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Mon, 04 Nov 2024 17:51:46 +0100 |
parents | 272b0d0eef38 |
children |
line wrap: on
line diff
--- a/OrthancServer/Sources/main.cpp Tue Oct 29 15:57:53 2024 +0000 +++ b/OrthancServer/Sources/main.cpp Mon Nov 04 17:51:46 2024 +0100 @@ -63,7 +63,7 @@ static const char* const KEY_DICOM_TLS_MINIMUM_PROTOCOL_VERSION = "DicomTlsMinimumProtocolVersion"; static const char* const KEY_DICOM_TLS_ACCEPTED_CIPHERS = "DicomTlsCiphersAccepted"; static const char* const KEY_MAXIMUM_PDU_LENGTH = "MaximumPduLength"; - +static const char* const KEY_READ_ONLY = "ReadOnly"; class OrthancStoreRequestHandler : public IStoreRequestHandler { @@ -1547,7 +1547,7 @@ } // New option in Orthanc 1.12.5 - readOnly = lock.GetConfiguration().GetBooleanParameter("ReadOnly", false); + readOnly = lock.GetConfiguration().GetBooleanParameter(KEY_READ_ONLY, false); // Configuration of DICOM TLS for Orthanc SCU (since Orthanc 1.9.0) DicomAssociationParameters::SetDefaultOwnCertificatePath(