-
Notifications
You must be signed in to change notification settings - Fork 0
/
ServiceOptions.cs
54 lines (32 loc) · 1.36 KB
/
ServiceOptions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
namespace CnCNetServer;
internal sealed record ServiceOptions
{
public required int TunnelPort { get; init; }
#if EnableLegacyVersion
public required int TunnelV2Port { get; init; }
#endif
public required string Name { get; init; }
public required int MaxClients { get; init; }
public required bool NoMasterAnnounce { get; init; }
public required string? MasterPassword { get; init; }
public required string? MaintenancePassword { get; init; }
public required Uri MasterServerUrl { get; init; }
public required int IpLimit { get; init; }
public required bool NoPeerToPeer { get; init; }
public required bool TunnelV3Enabled { get; init; }
#if EnableLegacyVersion
public required bool TunnelV2Enabled { get; init; }
#endif
public required LogLevel ServerLogLevel { get; init; }
public required LogLevel SystemLogLevel { get; init; }
public required bool AnnounceIpV6 { get; init; }
public required bool AnnounceIpV4 { get; init; }
#if EnableLegacyVersion
public required bool TunnelV2Https { get; init; }
#endif
public required int MaxPacketSize { get; init; }
public required ushort MaxPingsGlobal { get; init; }
public required ushort MaxPingsPerIp { get; init; }
public required ushort MasterAnnounceInterval { get; init; }
public required int ClientTimeout { get; init; }
}