WireGuardNTSharp icon indicating copy to clipboard operation
WireGuardNTSharp copied to clipboard

Only One Allowed IP used

Open mthompson2 opened this issue 2 years ago • 2 comments

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 avatar Oct 01 '23 09:10 mthompson2

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

mthompson2 avatar Oct 02 '23 22:10 mthompson2

Thanks for the code and feedback.

Can you do pull request?

damob-byun avatar Feb 13 '24 01:02 damob-byun