Fix #975 by not exporting uint8

This commit is contained in:
Neil Alexander 2022-11-01 17:42:52 +00:00
parent ee33bd248f
commit 590d83aa9c
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
5 changed files with 8 additions and 9 deletions

View file

@ -87,7 +87,7 @@ func (m *Yggdrasil) StartJSON(configjson []byte) error {
Beacon: intf.Beacon,
Listen: intf.Listen,
Port: intf.Port,
Priority: intf.Priority,
Priority: uint8(intf.Priority),
})
}
m.multicast, err = multicast.New(m.core, logger, options...)
@ -138,7 +138,7 @@ func (m *Yggdrasil) Recv() ([]byte, error) {
return buf[:n], nil
}
// Recv waits for and reads a packet coming from Yggdrasil to given buffer, returning size of packet
// Recv waits for and reads a packet coming from Yggdrasil to given buffer, returning size of packet
func (m *Yggdrasil) RecvBuffer(buf []byte) (int, error) {
if m.iprwc == nil {
return 0, nil