mirror of
https://github.com/luscis/openlan.git
synced 2025-10-16 14:00:42 +08:00
fix: access: open cost error
This commit is contained in:
@@ -127,11 +127,11 @@ func (p *Point) OnTap(w *TapWorker) error {
|
||||
if err != nil {
|
||||
p.out.Error("Point.OnTap: Get %s: %s", p.brName, err)
|
||||
}
|
||||
}
|
||||
if p.config.Interface.Cost > 0 {
|
||||
port := network.NewBrPort(name)
|
||||
if err := port.Cost(p.config.Interface.Cost); err != nil {
|
||||
p.out.Error("Point.OnTap: Cost %s: %s", err)
|
||||
if p.config.Interface.Cost > 0 {
|
||||
port := network.NewBrPort(name)
|
||||
if err := port.Cost(p.config.Interface.Cost); err != nil {
|
||||
p.out.Error("Point.OnTap: Cost %s: %s", p.brName, err)
|
||||
}
|
||||
}
|
||||
}
|
||||
p.link = link
|
||||
|
Reference in New Issue
Block a user