Table of Contents

Class ProxyEndPoint

Namespace
VpnHood.AppLib.Api.Proxies
Assembly
VpnHood.AppLib.Api.dll

Represents a proxy server: its protocol, address, credentials and whether it is used.

public class ProxyEndPoint
Inheritance
ProxyEndPoint
Inherited Members

Properties

Host

Gets the proxy's host name or IP address.

public required string Host { get; init; }

Property Value

string

Id

Gets the endpoint's ID: the hex MD5 hash of its protocol's name, host and port, as in Socks5://host:1080. The host is hashed as written, so a change of its case gives another ID.

public string Id { get; set; }

Property Value

string

IsEnabled

Gets or sets a value indicating whether the endpoint is used. The default is true.

public bool IsEnabled { get; set; }

Property Value

bool

Password

Gets or sets the password, or null.

public string? Password { get; set; }

Property Value

string

Port

Gets the proxy's port.

public required int Port { get; init; }

Property Value

int

Protocol

Gets the proxy's protocol.

public required ProxyProtocol Protocol { get; init; }

Property Value

ProxyProtocol

Url

Gets the endpoint's URL, credentials included, as socks5://user:password@host:1080/?enabled=1. The query is there only for an enabled endpoint.

public string Url { get; set; }

Property Value

string

Username

Gets or sets the user name, or null.

public string? Username { get; set; }

Property Value

string