Table of Contents

Enum EndPointStrategy

Namespace
VpnHood.Core.Common.Tokens
Assembly
VpnHood.Core.Common.dll

Specifies how a client orders the addresses of a server token: those its host name resolves to, and those it lists (HostEndPoints).

[JsonConverter(typeof(EndPointStrategyConverter))]
[JsonEnumFallback(EndPointStrategy.Auto)]
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.

[Obsolete] TokenFirst = 2

The former name of IpFirst.

[Obsolete] TokenOnly = 4

The former name of IpOnly.

Remarks

In JSON it is written as a number, and read as a number or a name; one this version does not know reads as Auto.