4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-06-15 07:26:05 +00:00

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