Fix missing multicast cost field

This commit is contained in:
Neil Alexander 2024-02-08 11:48:33 +00:00
parent fdfe784a3c
commit 1cf796e391
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944
3 changed files with 3 additions and 0 deletions

View File

@ -247,6 +247,7 @@ func main() {
Listen: intf.Listen,
Port: intf.Port,
Priority: uint8(intf.Priority),
Cost: uint8(intf.Cost),
Password: intf.Password,
})
}

View File

@ -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,
})
}

View File

@ -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
}