change wireguard vpn protocol implementation on Windows from wg.exe to wireguard windows embeddable-dll-service
This commit is contained in:
parent
d553d7f772
commit
6042317552
13 changed files with 243 additions and 3 deletions
22
service/wireguard-service/wireguardtunnelservice.h
Normal file
22
service/wireguard-service/wireguardtunnelservice.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#ifndef WIREGUARDTUNNELSERVICE_H
|
||||
#define WIREGUARDTUNNELSERVICE_H
|
||||
|
||||
#include <Windows.h>
|
||||
#include <string>
|
||||
|
||||
#define SVCNAME TEXT("AmneziaVPNWireGuardService")
|
||||
|
||||
class WireguardTunnelService
|
||||
{
|
||||
public:
|
||||
WireguardTunnelService(const std::wstring& configFile);
|
||||
void addService();
|
||||
void removeService();
|
||||
int startTunnel();
|
||||
private:
|
||||
std::wstring m_configFile;
|
||||
};
|
||||
|
||||
void debug_log(const std::wstring& msg);
|
||||
|
||||
#endif // WIREGUARDTUNNELSERVICE_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue