luci icon indicating copy to clipboard operation
luci copied to clipboard

luci-app-wireguard: Invalid Error Message, Refresh

Open arrmo opened this issue 2 years ago • 3 comments


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'

arrmo avatar Oct 12 '22 02:10 arrmo

I can partially reproduce this on OpenWrt 22.03.0 r19685-512e76967f / LuCI openwrt-22.03 branch git-22.245.77528-487e58a

  1. Network > Interfaces > Add network interface
  2. Fill Name: wg0 and Protocol: Wireguard VPN
  3. Create network interface
  4. Generate Key, fill IP address, Save and Apply
  5. Status > Wireguard shows the interface and "No peer information available" tempsnip
  6. Network > Interfaces > Stop WG0
  7. Status > Wireguard shows "No WireGuard interfaces configured" tempsnip
  8. In a new browser tab, Network > Interfaces > Restart WG0
  9. In the previous tab, Status > Wireguard still shows "No WireGuard interfaces configured"

jcassette avatar Oct 15 '22 10:10 jcassette

Can confirm this is a bug.

PhilippElhaus avatar Mar 08 '23 15:03 PhilippElhaus