diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/TetheringService.kt b/mobile/src/main/java/be/mygod/vpnhotspot/TetheringService.kt index 871a014a..e4b9dfac 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/TetheringService.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/TetheringService.kt @@ -58,7 +58,7 @@ class TetheringService : IpNeighbourMonitoringService() { app.onRoutingsCleaned[this] = { synchronized(routings) { updateRoutingsLocked() } } IpNeighbourMonitor.registerCallback(this) } - val disableIpv6 = app.pref.getBoolean("service.disableIpv6", false) + val disableIpv6 = app.pref.getBoolean("service.disableIpv6", true) val iterator = routings.iterator() while (iterator.hasNext()) { val (downstream, value) = iterator.next() diff --git a/mobile/src/main/res/xml/pref_settings.xml b/mobile/src/main/res/xml/pref_settings.xml index 5cd4a895..1a44c4c1 100644 --- a/mobile/src/main/res/xml/pref_settings.xml +++ b/mobile/src/main/res/xml/pref_settings.xml @@ -30,7 +30,8 @@ app:key="service.disableIpv6" app:icon="@drawable/ic_image_looks_6" app:title="@string/settings_service_disable_ipv6" - app:summary="@string/settings_service_disable_ipv6_summary"/> + app:summary="@string/settings_service_disable_ipv6_summary" + app:defaultValue="true"/>