Fix libssh loading on Linux

The file is called `libssh.so`, but JNA already prefixes the `lib` part, so `Native.loadLibrary("ssh", ...)` results in an `liblibssh.so not found` error.
This commit is contained in:
Philipp Keck 2023-01-29 21:53:52 +01:00
parent 6cca8e9c9e
commit 8e295770b5

View File

@ -43,9 +43,6 @@ interface SSHLibrary : Library {
companion object { companion object {
val INSTANCE = Native.loadLibrary( val INSTANCE = Native.loadLibrary("ssh", SSHLibrary::class.java) as SSHLibrary
if (getCurrentOs().isWindows()) "ssh" else "libssh",
SSHLibrary::class.java
) as SSHLibrary
} }
} }