diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-08-09 22:38:35 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-08-10 02:30:33 +0200 |
commit | 747f5d07fbf14c76c9b43e91a7f81f1cab5edc51 (patch) | |
tree | a7b1e8748dc3ed2122ee4e812e4c9de91b071c3f /embeddable-dll-service/csharp/TunnelDll/Service.cs | |
parent | embeddable-dll-service: use wgnt always (diff) | |
download | wireguard-windows-747f5d07fbf14c76c9b43e91a7f81f1cab5edc51.tar.xz wireguard-windows-747f5d07fbf14c76c9b43e91a7f81f1cab5edc51.zip |
embeddable-dll-service: csharp: update for wgnt
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'embeddable-dll-service/csharp/TunnelDll/Service.cs')
-rw-r--r-- | embeddable-dll-service/csharp/TunnelDll/Service.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/embeddable-dll-service/csharp/TunnelDll/Service.cs b/embeddable-dll-service/csharp/TunnelDll/Service.cs index 7f2c622e..8e25b6c4 100644 --- a/embeddable-dll-service/csharp/TunnelDll/Service.cs +++ b/embeddable-dll-service/csharp/TunnelDll/Service.cs @@ -21,10 +21,9 @@ namespace Tunnel [DllImport("tunnel.dll", EntryPoint = "WireGuardTunnelService", CallingConvention = CallingConvention.Cdecl)] public static extern bool Run([MarshalAs(UnmanagedType.LPWStr)] string configFile); - public static NamedPipeClientStream GetPipe(string configFile) + public static Driver.Adapter GetAdapter(string configFile) { - var pipepath = "ProtectedPrefix\\Administrators\\WireGuard\\" + Path.GetFileNameWithoutExtension(configFile); - return new NamedPipeClientStream(pipepath); + return new Driver.Adapter(Path.GetFileNameWithoutExtension(configFile)); } public static void Add(string configFile, bool ephemeral) |