Location profile (Hydra only)

The SDK supports custom VPN profiles for Hydra-based sessions. This feature allows you to pass specific configuration profiles to control the VPN connection behavior.

  • How to Enable: Use the withLocationProfile method in SessionConfig.Builder to apply the desired location profile to the VPN session.

  • Fetching Profiles: The LocationProfile can be fetched dynamically from the backend using the available API.

sdk.getBackend().locations(ConnectionType.HYDRA_TCP, new Callback<AvailableLocations>() {
   @Override
   public void success(@NonNull AvailableLocations availableLocations) {
        //availableLocations.getProfiles()
   }

   @Override
   public void failure(@NonNull VpnException e) {
   }
}); 
  • Disabling Location Profile: To disable a location profile, pass an empty string ("") to the withLocationProfile method.

Last updated

Was this helpful?