Table of Contents

Enum EndPointStrategy

Namespace
VpnHood.AppLib.Api.Settings
Assembly
VpnHood.AppLib.Api.dll

Specifies how a client orders the addresses of an access key's server: those its host name resolves to, and those the access key lists.

[JsonConverter(typeof(EndPointStrategyConverter))]
public enum EndPointStrategy

Fields

Auto = 0

The server token's own strategy, as a client's setting; as the token's, the host name's addresses first.

DnsFirst = 1

The host name's addresses first, then the listed ones.

IpFirst = 2

The listed addresses first, then the host name's.

DnsOnly = 3

The host name's addresses alone; with no valid host name, as Auto.

IpOnly = 4

The listed addresses alone; with none listed, as DnsOnly.

Remarks

In JSON it is written as a number, and read as a number or a name: a number reads as it is, even one this version does not know, and a name it does not know fails to read.