Nozzle icon indicating copy to clipboard operation
Nozzle copied to clipboard

Support for ws://

Open greenart7c3 opened this issue 1 year ago • 2 comments

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

greenart7c3 avatar Feb 15 '24 22:02 greenart7c3

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

dluvian avatar Feb 25 '24 06:02 dluvian

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>

greenart7c3 avatar Feb 25 '24 10:02 greenart7c3