luci-app-wireguard: "Import Configuration as peer..." imports wrong data
bug
### Package Name
luci-app-wireguard
### Maintainer
@Environment
### OpenWrt Version
25.12.5
### OpenWrt Target/Subtarget
mediatek/filogic
### Steps to Reproduce
1. Go to Network -> Interfaces
2. Edit -> wireguard Interface
3. Go to Peers and use the tool "Import Configuration as peer..."
4. Drag &drop wg.conf in the field
### Actual Behaviour
When the succesfull imported Peer is analyzed it always inserts wrong content.
- Public Key is wrong and not whats is in the e.g. Mullvad wg.conf content.
Also what I've noticed:
- Allowed IP's, Endpoint Host, Endpoint Port, is also not imported(+Route Allowed IP's). But at least it doesn't insert incorrect data.
So after using the tool the Peer isn't working and some will have a bad time don't knowing why the tunnel isn't working.
I always had to manually insert the content from the wg.conf into the peer configuration and by luck managed to spot the problem.
### Confirmation Checklist
- [x] The package is maintained in this repository.
- [x] I understand that issues related to [the base OpenWrt repository](https://github.com/openwrt/openwrt/issues) or [LuCI repository](https://github.com/openwrt/luci/issues) will be closed.
- [x] I am reporting an issue for OpenWrt, not an unsupported fork.
0 条评论