Proxy connection(Hydra only)

Hydra provide ability to connect to desired location through another location as proxy. To enable this feature pass additional location to withLocation method of SessionConfig.Builder

builder.withLocation(location1, proxy)

Both locations can be fetched with Backend API

sdk.getBackend().locations(ConnectionType.HYDRA_TCP, new Callback<AvailableLocations>() {
@Override    
        public void success(@NonNull AvailableLocations availableLocations) {
           
        }    
        @Override    
        public void failure(@NonNull VpnException e) { 
        }
 }); 

To use optimal proxy parameter use empty string as proxy parameter or null to disable proxy feature

Last updated