Class TrackingOptions
- Namespace
- VpnHood.Core.Server.Access.Configurations
- Assembly
- VpnHood.Core.Server.Access.dll
Represents what the server's track log records of its sessions and their connections.
public class TrackingOptions
- Inheritance
-
TrackingOptions
- Inherited Members
Remarks
A setting left null takes its default, which the property of its name ending in Value
gives. The track log is on where any of the client's IP, the source port, or the destination's IP or port is
recorded (IsEnabled). It records what the server forwards itself, not what its VPN adapter carries.
Properties
IsEnabled
Gets a value indicating whether the track log is on: any of the client's IP, the source port, or the destination's IP or port is recorded.
[JsonIgnore]
public bool IsEnabled { get; }
Property Value
TrackClientIp
Gets or sets a value indicating whether the session and track logs record the client's IP as it is, or null for false.
public bool? TrackClientIp { get; set; }
Property Value
- bool?
TrackClientIpValue
Gets TrackClientIp, or its default, false.
[JsonIgnore]
public bool TrackClientIpValue { get; }
Property Value
TrackDestinationIp
Gets or sets a value indicating whether the track log records the destination address of each connection the server forwards itself, as a token that tells one from another, or null for false.
public bool? TrackDestinationIp { get; set; }
Property Value
- bool?
TrackDestinationIpValue
Gets TrackDestinationIp, or its default, false.
[JsonIgnore]
public bool TrackDestinationIpValue { get; }
Property Value
TrackDestinationPort
Gets or sets a value indicating whether the track log records the destination port of each connection the server forwards itself, or null for false.
public bool? TrackDestinationPort { get; set; }
Property Value
- bool?
TrackDestinationPortValue
Gets TrackDestinationPort, or its default, false.
[JsonIgnore]
public bool TrackDestinationPortValue { get; }
Property Value
TrackIcmp
public bool? TrackIcmp { get; set; }
Property Value
- bool?
TrackIcmpValue
[JsonIgnore]
public bool TrackIcmpValue { get; }
Property Value
TrackLocalPort
Gets or sets a value indicating whether the track log records the source port of each connection the server forwards itself, or null for false.
public bool? TrackLocalPort { get; set; }
Property Value
- bool?
TrackLocalPortValue
Gets TrackLocalPort, or its default, false.
[JsonIgnore]
public bool TrackLocalPortValue { get; }
Property Value
TrackTcp
public bool? TrackTcp { get; set; }
Property Value
- bool?
TrackTcpValue
[JsonIgnore]
public bool TrackTcpValue { get; }
Property Value
TrackUdp
public bool? TrackUdp { get; set; }
Property Value
- bool?
TrackUdpValue
[JsonIgnore]
public bool TrackUdpValue { get; }
Property Value
Methods
ApplyDefaults()
Sets each option left null to its default.
public void ApplyDefaults()
Merge(TrackingOptions)
Copies over these options each one another set sets.
public void Merge(TrackingOptions obj)
Parameters
objTrackingOptionsThe options that win where they are set.