Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Support for ws:// #84

Open
greenart7c3 opened this issue Feb 15, 2024 · 2 comments
Open

Support for ws:// #84

greenart7c3 opened this issue Feb 15, 2024 · 2 comments

Comments

@greenart7c3
Copy link

Add support for ws:// to use local relays without ssl enabled

@dluvian
Copy link
Owner

dluvian commented Feb 25, 2024

I would have to set android:usesCleartextTraffic="true" for it to work and I'm not sure I want this. Using cleartext should be discouraged

@greenart7c3
Copy link
Author

greenart7c3 commented Feb 25, 2024

I haven't found a good way of adding ssl to the local relay app I'm building yet.
Tor users also don't use ssl for .onion connections

Maybe you can do something like this

<application
    android:networkSecurityConfig=“@xml/network_security_config”>
<?xml version=“1.0” encoding=“utf-8” ?>
<network-security-config>
        <domain-config cleartextTrafficPermitted=“false”>
               <domain includeSubdomains=“true”>localhost</domain>
               <domain includeSubdomains=“true”>127.0.0.1</domain>
               <domain includeSubdomains=“true”>onion</domain>
        </domain-config>
</network-security-config>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants