Skip to content

Commit

Permalink
Fix missing multicast cost field
Browse files Browse the repository at this point in the history
  • Loading branch information
neilalexander committed Feb 8, 2024
1 parent fdfe784 commit 1cf796e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/yggdrasil/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ func main() {
Listen: intf.Listen,
Port: intf.Port,
Priority: uint8(intf.Priority),
Cost: uint8(intf.Cost),
Password: intf.Password,
})
}
Expand Down
1 change: 1 addition & 0 deletions contrib/mobile/mobile.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ func (m *Yggdrasil) StartJSON(configjson []byte) error {
Listen: intf.Listen,
Port: intf.Port,
Priority: uint8(intf.Priority),
Cost: uint8(intf.Cost),
Password: intf.Password,
})
}
Expand Down
1 change: 1 addition & 0 deletions src/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ type MulticastInterfaceConfig struct {
Listen bool
Port uint16
Priority uint64 // really uint8, but gobind won't export it
Cost uint16 // really uint8, but gobind won't export it
Password string
}

Expand Down

0 comments on commit 1cf796e

Please sign in to comment.