Table of Contents

Class ServerOptions

Namespace
VpnHood.Core.Server
Assembly
VpnHood.Core.Server.dll

Represents the options of a VpnHoodServer.

public class ServerOptions
Inheritance
ServerOptions
Inherited Members

Properties

Config

Gets a configuration of the server's own, or null: each setting it sets takes the place of the access manager's, but for the certificates and the configuration code, which stay the access manager's.

public ServerConfig? Config { get; init; }

Property Value

ServerConfig

DownloadsPath

Gets the folder whose files the server serves under /downloads/, or null for none.

public string? DownloadsPath { get; init; }

Property Value

string

NetConfigurationProvider

Gets what manages the machine's network, as the server's configuration asks, or null for none.

public INetConfigurationProvider? NetConfigurationProvider { get; init; }

Property Value

INetConfigurationProvider

QuicServer

QUIC listener provider (e.g. MsQuicServer). Null disables QUIC; if QUIC endpoints are then configured the server reports them as unsupported on this platform.

public IQuicServer? QuicServer { get; init; }

Property Value

IQuicServer

StoragePath

Gets the server's folder for its own files, as the sessions it recovers after a restart and its last configuration. The default is the current directory.

public string StoragePath { get; init; }

Property Value

string

SwapMemoryProvider

Gets what manages the machine's swap memory, as the server's configuration asks, or null for none.

public ISwapMemoryProvider? SwapMemoryProvider { get; init; }

Property Value

ISwapMemoryProvider

SystemInfoProvider

Gets what tells the server of its machine, or null for a basic one, of what .NET knows.

public ISystemInfoProvider? SystemInfoProvider { get; init; }

Property Value

ISystemInfoProvider

Tracker

Gets the tracker the server reports its anonymous events to, as its start and its clients' versions, or null.

public ITracker? Tracker { get; init; }

Property Value

ITracker

VirtualIpNetworkV4

Gets the IPv4 network the server gives its clients' virtual addresses from. The default is VirtualIpNetworkV4.

public IpNetwork VirtualIpNetworkV4 { get; init; }

Property Value

IpNetwork

VirtualIpNetworkV6

Gets the IPv6 network the server gives its clients' virtual addresses from. The default is VirtualIpNetworkV6.

public IpNetwork VirtualIpNetworkV6 { get; init; }

Property Value

IpNetwork

VpnAdapter

Gets the VPN adapter that takes the sessions' TCP packets out, with its NAT, or null for none, where the sessions that may forward TCP connections do so instead.

public IVpnAdapter? VpnAdapter { get; init; }

Property Value

IVpnAdapter