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
DownloadsPath
Gets the folder whose files the server serves under /downloads/, or null for none.
public string? DownloadsPath { get; init; }
Property Value
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
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
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
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
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
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
VirtualIpNetworkV4
Gets the IPv4 network the server gives its clients' virtual addresses from. The default is VirtualIpNetworkV4.
public IpNetwork VirtualIpNetworkV4 { get; init; }
Property Value
VirtualIpNetworkV6
Gets the IPv6 network the server gives its clients' virtual addresses from. The default is VirtualIpNetworkV6.
public IpNetwork VirtualIpNetworkV6 { get; init; }
Property Value
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; }