unreachable-host-leaves-blank-retrying-purchase.diff (1044B)
1 diff --git a/wallet/src/main/res/xml/network_security_config.xml b/wallet/src/main/res/xml/network_security_config.xml 2 index de61259a..546a817f 100644 3 --- a/wallet/src/main/res/xml/network_security_config.xml 4 +++ b/wallet/src/main/res/xml/network_security_config.xml 5 @@ -1,6 +1,16 @@ 6 <?xml version="1.0" encoding="utf-8"?> 7 <network-security-config> 8 + <!-- 9 + 127.0.0.1 and ::1 are the same machine as "localhost", but the platform 10 + matches this by name: a developer pointing the wallet at 11 + http://127.0.0.1:8081/ got UnknownServiceException ("CLEARTEXT 12 + communication to 127.0.0.1 not permitted by network security policy"), 13 + which wallet-core retries for ever because it looks like a transient 14 + network failure. 15 + --> 16 <domain-config cleartextTrafficPermitted="true"> 17 <domain includeSubdomains="true">localhost</domain> 18 + <domain includeSubdomains="false">127.0.0.1</domain> 19 + <domain includeSubdomains="false">::1</domain> 20 </domain-config> 21 </network-security-config>