Merge pull request #2471 from imachug/patch-1

Search for any OpenSSL version in LD_LIBRARY_PATH
This commit is contained in:
ZeroNet 2020-03-10 21:34:39 +01:00 committed by GitHub
commit 53a6063576
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,7 @@ def getOpensslPath():
lib_dir_paths = os.environ["LD_LIBRARY_PATH"].split(":")
for path in lib_dir_paths:
try:
return [lib for lib in os.listdir(path) if "libcrypto.so.1.0" in lib][0]
return [lib for lib in os.listdir(path) if "libcrypto.so" in lib][0]
except Exception as err:
logging.debug("OpenSSL lib not found in: %s (%s)" % (path, err))