Class WindowsVpnHostArgs
- Namespace
- VpnHood.Core.Client.Devices.WindowsTun
- Assembly
- VpnHood.Core.Client.Devices.WindowsTun.dll
Represents the VPN host's command line, which the daemon writes and the VPN host reads (WindowsVpnHost).
public sealed class WindowsVpnHostArgs
- Inheritance
-
WindowsVpnHostArgs
- Inherited Members
Properties
DaemonName
Gets the daemon's Windows service name, under which the VPN host writes the Event Log and whose SID the kill switch's block lets out; null for a dev run's daemon, which runs as the person and is no service.
public string? DaemonName { get; init; }
Property Value
StorageFolder
Gets the app's storage: the kill switch's owner, with the VPN service's folder under it.
public required string StorageFolder { get; init; }
Property Value
Usage
Gets the command line's usage: --storage <folder> [--daemon <name>].
public static string Usage { get; }
Property Value
Methods
TryParse(IReadOnlyList<string>)
Reads a command line.
public static WindowsVpnHostArgs? TryParse(IReadOnlyList<string> args)
Parameters
argsIReadOnlyList<string>The arguments.
Returns
- WindowsVpnHostArgs
The command line, or null where the arguments are not
--storageand a folder, with or without--daemonand a name after them.