[WARN] client: could not update wireguard interface: wglinux: invalid endpoint IP: <nil>
0x1a8510f2 opened this issue · comments
Describe the bug
On the latest dev build, on startup and whenever I change any interface properties, the line from the issue title appears in the logs and the interface is not created correctly. That is, it's not visible in ifconfig
while ip addr
reports the following:
4: drago-9579b5: <POINTOPOINT,NOARP> mtu 1420 qdisc noqueue state DOWN group default qlen 1000
link/none
Expected behavior
The interface should be created and configured correctly
Desktop (please complete the following information):
- OS: openSUSE Tumbleweed / openSUSE Leap 15.3
Additional context
Add any other context about the problem here.
Since reporting, I found why the bug occurs. Drago fails to set the peer endpoint address (when connected directly) unless the connecting peer has advertise.peer
set up in the config. This isn't ideal though; Drago should probably default to the address connecting over RPC for the endpoint IP instead of making it nil.