AnchorFreePartner / hydrasdk-demo-android

Hydra VPN SDK demo app for Android
https://developer.anchorfree.com/
60 stars 31 forks source link

unable to block few domains #80

Closed bazilbycom closed 3 years ago

bazilbycom commented 4 years ago

UnifiedSDK.getInstance().getVPN().start(new SessionConfig.Builder()
.withReason(TrackingConstants.GprReasons.M_UI)
.withTransportFallback(fallbackOrder)
.withVirtualLocation(selectedCountry)
.withTransport(HydraTransport.TRANSPORT_ID)
.addProxyRule(TrafficRule.Builder.block().fromAssets("adblock.txt"))
.addDnsRule(TrafficRule.Builder.block().fromAssets("adblock.txt"))
.build(), new CompletableCallback() {

i tried adding both proxyrule as well as dns rule. and ablock.txt has just 3 domains 127.0.0.1 indishare.org 127.0.0.1 googleadservices.com 127.0.0.1 googleads.g.doubleclick.net

Nothing works

timoshenkoav commented 4 years ago

Hello! File should contain just domains

indishare.org googleadservices.com googleads.g.doubleclick.net

timoshenkoav commented 3 years ago

@bazilbycom any update?

bazilbycom commented 3 years ago

Let me try it.

timoshenkoav commented 3 years ago

@bazilbycom any news?