Use the client network for log errors (#455)

This commit is contained in:
Maycon Santos 2022-09-07 18:26:59 +02:00 committed by GitHub
parent de898899a4
commit ed1872560f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,7 +207,7 @@ func (c *clientNetwork) recalculateRouteAndUpdatePeerAndSystem() error {
err = addToRouteTableIfNoExists(c.network, c.wgInterface.GetAddress().IP.String())
if err != nil {
return fmt.Errorf("route %s couldn't be added for peer %s, err: %v",
c.chosenRoute.Network.String(), c.wgInterface.GetAddress().IP.String(), err)
c.network.String(), c.wgInterface.GetAddress().IP.String(), err)
}
}