Table of Contents

Class FileAccessManagerOptions

Namespace
VpnHood.Core.Server.Access.Managers.FileAccessManagers
Assembly
VpnHood.Core.Server.Access.Managers.FileAccessManagers.dll

Represents the options of a FileAccessManager: the server's configuration, with what goes into the server token its access keys carry.

public class FileAccessManagerOptions : ServerConfig
Inheritance
FileAccessManagerOptions
Inherited Members

Remarks

The manager puts its own certificate in place of the configuration's certificates, and, where the UDP endpoints are not set, gives them the TCP endpoints' addresses, on the port the server keeps.

Properties

HostPort

Gets or sets the port the server token gives with the host name, or null for the first public endpoint's.

public int? HostPort { get; set; }

Property Value

int?

IsValidHostName

Gets or sets a value indicating whether the certificate's host name is one a client can check as a web browser does; otherwise, the server token carries the certificate's hash.

public bool IsValidHostName { get; set; }

Property Value

bool

PublicEndPoints

Gets or sets the endpoints the clients reach the server at, or null for its TCP endpoints; none may be an "any" address.

[JsonConverter(typeof(ArrayConverter<IPEndPoint, IPEndPointConverter>))]
public IPEndPoint[]? PublicEndPoints { get; set; }

Property Value

IPEndPoint[]

ReplyAccessKey

Gets or sets a value indicating whether a new session's answer carries the access key, so a client takes an updated server token from it; otherwise, only the URLs update it. The default is true.

public bool ReplyAccessKey { get; set; }

Property Value

bool

ServerTokenUrl

Gets the first of ServerTokenUrls, under its older name, or sets it as the only one where ServerTokenUrls is empty; a set otherwise changes nothing. A set logs a warning either way.

[Obsolete("Use ServerTokenUrls. Version 558 or upper.")]
public string? ServerTokenUrl { get; set; }

Property Value

string

ServerTokenUrls

Gets or sets the URLs a client may read an updated server token from. The default is none.

public string[] ServerTokenUrls { get; set; }

Property Value

string[]

SslCertificatesPassword

Gets or sets the password of the server's certificate file, or null for none.

public string? SslCertificatesPassword { get; set; }

Property Value

string

UseExternalLocationService

Gets or sets a value indicating whether the manager may ask services on the network for the server's location, for the server token, where its folder keeps none. The default is true.

public bool UseExternalLocationService { get; set; }

Property Value

bool