package com.foxx.androidcast.remoteaccess;

import android.content.Context;

import com.foxx.androidcast.remoteaccess.control.RemoteAccessControlClient;
import com.foxx.androidcast.vpn.VpnServiceClient;

/** Tear down all remote-access transports (WireGuard + RSSH + control HTTP). */
public final class RemoteAccessTunnelHelper {
    private RemoteAccessTunnelHelper() {}

    public static void tearDownAll(Context context) {
        RemoteAccessControlClient.get(context).stopSessionSync();
        VpnServiceClient.get(context).tearDown();
        ReverseSshTunnelBridge.tearDown(context);
    }
}
