Skip to content
Snippets Groups Projects

v2.8b604

Merged Ahmed Shehata requested to merge development into master
4 files
+ 6
9
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -37,11 +37,7 @@ object Ssh : SshClient {
// BouncyCastle is deprecated in Android P+
SecurityUtils.setRegisterBouncyCastle(false)
val ssh = SSHClient(Config).apply {
if (BuildConfig.DEBUG) {
addHostKeyVerifier(PromiscuousVerifier())
} else {
addHostKeyVerifier(UserConsentVerifier())
}
addHostKeyVerifier(PromiscuousVerifier())
connect(credentials.host, credentials.port.toInt())
}
Loading