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
withLocationProfilemethod inSessionConfig.Builderto apply the desired location profile to the VPN session.Fetching Profiles: The
LocationProfilecan 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 thewithLocationProfilemethod.
Last updated
Was this helpful?