Add network_security_config so we are allowed to connect to onion addresses

Otherwise trying to connect without TLS will throw an exception.
This commit is contained in:
Torsten Grote
2022-02-17 14:20:44 -03:00
parent f7892050ea
commit 7fad299cf0
2 changed files with 7 additions and 0 deletions

View File

@@ -46,6 +46,7 @@
android:icon="@mipmap/ic_launcher_round"
android:label="@string/app_name"
android:logo="@mipmap/ic_launcher_round"
android:networkSecurityConfig="@xml/network_security_config"
android:supportsRtl="true"
android:theme="@style/BriarTheme"
tools:ignore="GoogleAppIndexingWarning,UnusedAttribute"

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">onion</domain>
</domain-config>
</network-security-config>