luci
luci copied to clipboard
luci-app-wireguard: Invalid Error Message, Refresh
Steps to reproduce:
Hi,
I have noticed that if I have WireGuard configured, but handshake has not occurred, the status shows,
No WireGuard interfaces configured
But that's not really correct. It's not connected (vs. not configured). Perhaps update this wording? I don't mind updating it, if you'd prefer.
I have also noticed, that in this state refresh is not really updating. If it connects ... you have to manually refresh. This one seems a bit more odd. Any reason why it wouldn't refresh? And it seems that state changes are what cause this to not refresh properly?
Thanks!
Actual behavior:
As noted above.
Expected behavior:
As noted above.
Additional Information:
OpenWrt version information from system /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='22.03.0-rc6'
DISTRIB_REVISION='r19590-042d558536'
DISTRIB_TARGET='ipq40xx/generic'
DISTRIB_ARCH='arm_cortex-a7_neon-vfpv4'
DISTRIB_DESCRIPTION='OpenWrt 22.03.0-rc6 r19590-042d558536'
DISTRIB_TAINTS='no-all'
I can partially reproduce this on OpenWrt 22.03.0 r19685-512e76967f / LuCI openwrt-22.03 branch git-22.245.77528-487e58a
- Network > Interfaces > Add network interface
- Fill Name: wg0 and Protocol: Wireguard VPN
- Create network interface
- Generate Key, fill IP address, Save and Apply
- Status > Wireguard shows the interface and "No peer information available"
- Network > Interfaces > Stop WG0
- Status > Wireguard shows "No WireGuard interfaces configured"
- In a new browser tab, Network > Interfaces > Restart WG0
- In the previous tab, Status > Wireguard still shows "No WireGuard interfaces configured"
Can confirm this is a bug.