From 72db784fc761d2cf7c9b7314e0b4c76fb45e24f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Mon, 4 Nov 2024 11:05:38 +0800 Subject: [PATCH] Add bind.Interface.Flags --- common/control/bind_finder.go | 1 + common/control/bind_finder_default.go | 1 + 2 files changed, 2 insertions(+) diff --git a/common/control/bind_finder.go b/common/control/bind_finder.go index a89993b1..9b013d34 100644 --- a/common/control/bind_finder.go +++ b/common/control/bind_finder.go @@ -19,4 +19,5 @@ type Interface struct { Name string Addresses []netip.Prefix HardwareAddr net.HardwareAddr + Flags net.Flags } diff --git a/common/control/bind_finder_default.go b/common/control/bind_finder_default.go index 250e32aa..804497b6 100644 --- a/common/control/bind_finder_default.go +++ b/common/control/bind_finder_default.go @@ -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