Table of Contents

Class DebugCommands

Namespace
VpnHood.AppLib.App.Utils
Assembly
VpnHood.AppLib.App.dll

Provides the debug commands a person can type on the developer page, which the app keeps in the settings (DebugData1).

public static class DebugCommands
Inheritance
DebugCommands
Inherited Members

Fields

CaptureContext

Makes the library's awaits come back on the captured context by default.

public const string CaptureContext = "/capture-context"

Field Value

string

DisableWebSocket

Makes the client send its session's requests after the hello without WebSocket streams.

public const string DisableWebSocket = "/disable-websocket"

Field Value

string

DropUdp

Drops the tunnel's UDP, as the person's own setting can.

public const string DropUdp = "/drop-udp"

Field Value

string

LogDebug

Logs at the debug level.

public const string LogDebug = "/log:debug"

Field Value

string

LogTrace

Logs at the trace level.

public const string LogTrace = "/log:trace"

Field Value

string

NoChannelReuse

Makes the client open a new channel for each connection.

public const string NoChannelReuse = "/no-channel-reuse"

Field Value

string

NullCapture

Connects with a null adapter, which captures nothing, so a test connect leaves the device's network as it is.

public const string NullCapture = "/null-capture"

Field Value

string

OsTcpStack

A command nothing reads.

public const string OsTcpStack = "/os-tcp-stack"

Field Value

string

RemoteAccess

Opens remote access for the life of the process, with no pairing, so a UI developer can reach the device.

public const string RemoteAccess = "/remote-access"

Field Value

string

Turns on the Starlink tools in the UI, on Android or in a Debug build; the app itself does not act on it.

public const string Starlink = "/starlink"

Field Value

string

TvMode

Reports the device as a TV (IsTv), so the TV layout can be worked on from a phone or a desktop.

public const string TvMode = "/tv-mode"

Field Value

string

Remarks

A desktop window follows it as the developer page closes; elsewhere it applies at the next start. Only what reads IsTv follows it; a platform's own checks still read the real device.

UserReview

Asks for a review after the next session, as a server's recommendation does.

public const string UserReview = "/user-review"

Field Value

string

WinDivert

Makes the Windows VPN service capture with WinDivert.

public const string WinDivert = "/windivert"

Field Value

string

Properties

All

Gets every command, a new array at each read.

public static string[] All { get; }

Property Value

string[]