Skip to content

Commit

Permalink
Add bind.Interface.Flags
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Nov 4, 2024
1 parent d59ac57 commit 72db784
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/control/bind_finder.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ type Interface struct {
Name string
Addresses []netip.Prefix
HardwareAddr net.HardwareAddr
Flags net.Flags
}
1 change: 1 addition & 0 deletions common/control/bind_finder_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func (f *DefaultInterfaceFinder) Update() error {
Name: netIf.Name,
Addresses: common.Map(ifAddrs, M.PrefixFromNet),
HardwareAddr: netIf.HardwareAddr,
Flags: netIf.Flags,
})
}
f.interfaces = interfaces
Expand Down

0 comments on commit 72db784

Please sign in to comment.