drago icon indicating copy to clipboard operation
drago copied to clipboard

[WARN] client: could not update wireguard interface: wglinux: invalid endpoint IP: <nil>

Open 0x1a8510f2 opened this issue 4 years ago • 1 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.

0x1a8510f2 avatar Aug 17 '21 14:08 0x1a8510f2

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.

0x1a8510f2 avatar Aug 18 '21 11:08 0x1a8510f2