damob-byun / WireGuardNTSharp

WireGuard Simple Windows Cli and WireGuard NT Wrapper for C#(Csharp) with P/Invoke
GNU General Public License v2.0
48 stars 6 forks source link

Only One Allowed IP used #3

Open mthompson2 opened 1 year ago

mthompson2 commented 1 year ago

Hi FIrstly - Great Project. Was easy to get up and running - But ive hit a big issue.

Structs.cs - struct loctlWgPeerConfig has a single IoctlAllowedIP object.

When populated the AllowedIP String is split and only the first is used.

I have managed to swap this for an array and populate it correctly (I think) but am failing during marshalling to IntPTR .

Any help would be appreciated.

mthompson2 commented 1 year ago

I believe I have a fix for this (And a few other bugs) at https://github.com/mthompson2/WireGuardNTSharp.

damob-byun commented 9 months ago

Thanks for the code and feedback.

Can you do pull request?