From 9b8217be40a54edd105a5e34bb4f1cc075cfd1c9 Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Tue, 9 Oct 2018 15:29:33 -0700 Subject: [PATCH] Method signature fix for csharp in reference to ticket #32 - partial fix for bug --- .../ExampleWindowsCSharpApp/ExampleWindowsCSharpApp/libzt.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/csharp/ExampleWindowsCSharpApp/ExampleWindowsCSharpApp/libzt.cs b/examples/csharp/ExampleWindowsCSharpApp/ExampleWindowsCSharpApp/libzt.cs index fe43c5e..d1683e7 100644 --- a/examples/csharp/ExampleWindowsCSharpApp/ExampleWindowsCSharpApp/libzt.cs +++ b/examples/csharp/ExampleWindowsCSharpApp/ExampleWindowsCSharpApp/libzt.cs @@ -78,7 +78,7 @@ namespace ZeroTier public static extern int zts_has_address(ulong nwid); [DllImport("libzt.dll", CallingConvention = CallingConvention.Cdecl)] - public static extern void zts_get_address(ulong nwid, IntPtr addr, int addrlen); + public static extern int zts_get_address(ulong nwid, IntPtr addr, int address_family); [DllImport("libzt.dll", CallingConvention = CallingConvention.Cdecl)] public static extern void zts_get_6plane_addr(IntPtr addr, string nwid, string nodeId);