1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-09-28 19:05:55 +08:00

Update client.cpp

This commit is contained in:
Victor Stewart 2020-03-29 00:27:53 -04:00 committed by GitHub
parent 1ab9ee8a5f
commit ffb657b164
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -222,6 +222,10 @@ void UClient_Base::loadConfigParam()
key_file = pcfg->at(U_CONSTANT_TO_PARAM("KEY_FILE"));
password = pcfg->at(U_CONSTANT_TO_PARAM("PASSWORD"));
cert_file = pcfg->at(U_CONSTANT_TO_PARAM("CERT_FILE"));
tls_pin = pcfg->at(U_CONSTANT_TO_PARAM("TLS_SPKI_PIN"));
if (tls_pin.size()) UBase64::decode(tls_pin.data(), tls_pin.size(), tls_pin);
// write pid on file...