fix: support to bind dae to wg lan (and other tun) (#221)

This commit is contained in:
mzz
2023-07-16 18:26:20 +08:00
committed by GitHub
parent ef6dc5dcf9
commit b34b5acfe9
4 changed files with 216 additions and 124 deletions

View File

@ -192,6 +192,7 @@ func NewControlPlane(
// Add clsact qdisc
for _, ifname := range common.Deduplicate(append(append([]string{}, global.LanInterface...), global.WanInterface...)) {
_ = core.addQdisc(ifname)
_ = core.mapLinkType(ifname)
}
// Bind to LAN
if len(global.LanInterface) > 0 {