summaryrefslogtreecommitdiff
path: root/main/src/ui/java/de/blinkt/openvpn/fragments/ImportASConfig.kt
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/ui/java/de/blinkt/openvpn/fragments/ImportASConfig.kt')
-rw-r--r--main/src/ui/java/de/blinkt/openvpn/fragments/ImportASConfig.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/ui/java/de/blinkt/openvpn/fragments/ImportASConfig.kt b/main/src/ui/java/de/blinkt/openvpn/fragments/ImportASConfig.kt
index 60c79f87..ee912897 100644
--- a/main/src/ui/java/de/blinkt/openvpn/fragments/ImportASConfig.kt
+++ b/main/src/ui/java/de/blinkt/openvpn/fragments/ImportASConfig.kt
@@ -266,7 +266,7 @@ class ImportASConfig : DialogFragment() {
if (response.code() == 401 && crvMessage.matcher(profile).matches()) {
requireContext().runOnUiThread {
pleaseWait?.dismiss()
- showCRDialog(profile, asProfileUri)
+ showCRDialog(profile)
}
} else if (response.isSuccessful) {
@@ -342,12 +342,12 @@ class ImportASConfig : DialogFragment() {
}
}
- private fun showCRDialog(response: String, asProfileUri: HttpUrl) {
+ private fun showCRDialog(response: String) {
// This is a dirty hack instead of properly parsing the response
val m = crvMessage.matcher(response)
// We already know that it matches
m.matches()
- var challenge = m.group(1)
+ val challenge = m.group(1)
var username = m.group(2)
val message = m.group(3)