Wireguard client status “connecting”

(Beta8)

I’ve been observing that, sometimes, the wireguard client status is “connecting” (yellow/orange) but the tunnel is actually connected and working. I am not really sure how to reproduce it though, normally disconnecting and connecting the tunnel provides a correct status. This is what I see in the log (repeated several times) when this happens:

Sat May 28 19:05:36 2022 kern.info kernel: [254963.519166] wireguard: wireguard-hotplug IFNAME=wgclient ACTION=KEYPAIR-CREATED
Sat May 28 19:05:36 2022 user.notice wireguard-debug: USER=root ifname=wgclient ACTION=KEYPAIR-CREATED SHLVL=2 HOME=/ HOTPLUG_TYPE=wireguard LOGNAME=root DEVICENAME= TERM=linux SUBSYSTEM=wireguard PATH=/usr/sbin:/usr/bin:/sbin:/bin PWD=/
Sat May 28 19:07:36 2022 kern.info kernel: [255083.590433] wireguard: wireguard-hotplug IFNAME=wgclient ACTION=KEYPAIR-CREATED
Sat May 28 19:07:36 2022 user.notice wireguard-debug: USER=root ifname=wgclient ACTION=KEYPAIR-CREATED SHLVL=2 HOME=/ HOTPLUG_TYPE=wireguard LOGNAME=root DEVICENAME= TERM=linux SUBSYSTEM=wireguard PATH=/usr/sbin:/usr/bin:/sbin:/bin PWD=/

This is a custom wireguard server with a pretty standard full tunnel configuration (nothing really fancy). This is the output of the wg command, as you can see, the tunnel is up and has been so for a while:

peer: [redacted]
  endpoint: example.com:port
  allowed ips: 0.0.0.0/0, ::/0
  latest handshake: 6 seconds ago
  transfer: 3.92 GiB received, 702.06 MiB sent
  persistent keepalive: every 25 seconds