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:
parent
6cca8e9c9e
commit
8e295770b5
@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user