damob-byun / WireGuardNTSharp

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

Only One Allowed IP used #3

Open mthompson2 opened 12 months ago

mthompson2 commented 12 months 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 12 months ago

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

damob-byun commented 7 months ago

Thanks for the code and feedback.

Can you do pull request?