forked from vpnhood/VpnHood
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathServerOptions.cs
20 lines (18 loc) · 851 Bytes
/
ServerOptions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using Ga4.Ga4Tracking;
using VpnHood.Server.Access.Configurations;
using VpnHood.Server.SystemInformation;
using VpnHood.Tunneling.Factory;
namespace VpnHood.Server;
public class ServerOptions
{
public SocketFactory SocketFactory { get; init; } = new();
public Ga4Tracker? GaTracker { get; init; }
public ISystemInfoProvider? SystemInfoProvider { get; init; }
public INetFilter NetFilter { get; init; } = new NetFilter();
public bool AutoDisposeAccessManager { get; init; } = true;
public TimeSpan ConfigureInterval { get; init; } = TimeSpan.FromSeconds(60);
public string StoragePath { get; init; } = Directory.GetCurrentDirectory();
public bool PublicIpDiscovery { get; init; } = true;
public ServerConfig? Config { get; init; }
public TimeSpan CleanupInterval { get; init; } = TimeSpan.FromMinutes(1);
}