Skip to content

Commit

Permalink
fix: assign source address to the DHCP default gateway routes
Browse files Browse the repository at this point in the history
This isn't strictly require, but it should be backwards compatible with
Talos 0.10 (networkd).

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
  • Loading branch information
smira authored and talos-bot committed Jun 22, 2021
1 parent 004885a commit 72ef48f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ func (d *DHCP4) parseAck(ack *dhcpv4.DHCPv4) {
d.routes = append(d.routes, network.RouteSpecSpec{
Family: nethelpers.FamilyInet4,
Gateway: gw,
Source: addr,
OutLinkName: d.linkName,
Table: nethelpers.TableMain,
Priority: d.routeMetric,
Expand Down

0 comments on commit 72ef48f

Please sign in to comment.