Skip to content

Instantly share code, notes, and snippets.

@s1monw1
Created August 24, 2017 11:39
Show Gist options
  • Save s1monw1/0cef47d184a973db6f736a0564b3f2ac to your computer and use it in GitHub Desktop.
Save s1monw1/0cef47d184a973db6f736a0564b3f2ac to your computer and use it in GitHub Desktop.
val fac = socketFactory {
trustManager {
if (System.currentTimeMillis() % 2 == 0L) {
open("any") withPass "123456" beingA "jks"
} else {
open("other") withPass "123456" beingA "jks"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment