Skip to content

Commit

Permalink
Add interface index in windows route updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lixmal committed Nov 21, 2024
1 parent f66bbcc commit 5d89af5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion client/firewall/nftables/state.go

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func (rm *RouteMonitor) parseUpdate(row *MIB_IPFORWARD_ROW2, notificationType MI
if idx != 0 {
intf, err := net.InterfaceByIndex(idx)
if err != nil {
return update, fmt.Errorf("get interface name: %w", err)
return update, fmt.Errorf("get interface name for index %d: %w", idx, err)
}

update.Interface = intf
Expand Down

0 comments on commit 5d89af5

Please sign in to comment.