diff options
author | pacien | 2018-03-14 13:30:11 +0100 |
---|---|---|
committer | pacien | 2018-03-14 13:30:11 +0100 |
commit | 2c5d24f024e4972fe20670594b3ed5ab38eeac4e (patch) | |
tree | 719680afc62a188ecfbc92ef76cb5843645879d4 /app/src/main/java/org | |
parent | 05857ad7d85ba73b3f67571f89e12f114874bc98 (diff) | |
download | tincapp-2c5d24f024e4972fe20670594b3ed5ab38eeac4e.tar.gz |
Handle network interface binding errors
Diffstat (limited to 'app/src/main/java/org')
-rw-r--r-- | app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt b/app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt index b59be80..0bf72a1 100644 --- a/app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt +++ b/app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt | |||
@@ -79,6 +79,10 @@ class TincVpnService : VpnService() { | |||
79 | .establish()!! | 79 | .establish()!! |
80 | } catch (e: IllegalArgumentException) { | 80 | } catch (e: IllegalArgumentException) { |
81 | return reportError(resources.getString(R.string.message_network_config_invalid_format, e.message!!), e, "network-interface") | 81 | return reportError(resources.getString(R.string.message_network_config_invalid_format, e.message!!), e, "network-interface") |
82 | } catch (e: IllegalStateException) { | ||
83 | return reportError(resources.getString(R.string.message_could_not_configure_iface, e.message!!), e) | ||
84 | } catch (e: NullPointerException) { | ||
85 | return reportError(resources.getString(R.string.message_could_not_bind_iface), e) | ||
82 | } | 86 | } |
83 | 87 | ||
84 | val privateKeys = try { | 88 | val privateKeys = try { |