wiresock / WireSockUI

GUI to use Wiresock VPN Client in application mode
https://www.wiresock.net/
302 stars 14 forks source link

[FeatureRequest] Allow same key #27

Closed bestpika closed 1 year ago

bestpika commented 1 year ago

Some service-generated WireGuard configuration files may have contents similar to the following:

[Peer]
...
AllowedIPs = 0.0.0.0/0
AllowedIPs = ::/0
...

If you import the file at this time, you will receive the error message shown in the following image. image

An item with the same key has already been added.

I know that as long as I change the content to the following, it will be fine.

...
AllowedIPs = 0.0.0.0/0, ::/0
...

But this will not be a problem in the official WireGuard client, so I hope to allow configuration files with this type of content and parse them correctly. Thank you.

bestpika commented 1 year ago

Is this actually a problem with WireSock?

wiresock commented 1 year ago

WireSock and WireSockUI use distinct APIs to parse configuration files, making it vital to confirm that both can handle multiple identical keys. However, I'm uncertain if this is a top priority right now.