From 288fed23918386cd155e850a6cb452086558c43c Mon Sep 17 00:00:00 2001 From: Mygod Date: Fri, 26 Jun 2020 01:14:02 +0800 Subject: [PATCH] Add missing return --- .../src/main/java/be/mygod/vpnhotspot/net/DhcpWorkaround.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/net/DhcpWorkaround.kt b/mobile/src/main/java/be/mygod/vpnhotspot/net/DhcpWorkaround.kt index 4d65de9d..9af15c6c 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/net/DhcpWorkaround.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/net/DhcpWorkaround.kt @@ -35,9 +35,9 @@ object DhcpWorkaround : SharedPreferences.OnSharedPreferenceChangeListener { it.exec("ip rule $action iif lo uidrange 0-0 lookup local_network priority 11000") } catch (e: RoutingCommands.UnexpectedOutputException) { if (e.result.out.isEmpty() && (e.result.exit == 2 || e.result.exit == 254) && if (enabled) { - e.result.err == "RTNETLINK answers: File exists" + e.result.err == "RTNETLINK answers: File exists\n" } else { - e.result.err == "RTNETLINK answers: No such file or directory" + e.result.err == "RTNETLINK answers: No such file or directory\n" }) return@use Timber.w(IOException("Failed to tweak dhcp workaround rule", e)) SmartSnackbar.make(e).show()