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

Merge branch 'develop' into neilalexander/refactor

This commit is contained in:
Neil Alexander
2022-08-06 15:23:44 +01:00
committed by GitHub
4 changed files with 14 additions and 15 deletions

View File

@ -4,7 +4,7 @@ import (
"context"
"crypto/ed25519"
"fmt"
"io/ioutil"
"io"
"net"
"net/url"
"os"
@ -67,7 +67,7 @@ func New(secret ed25519.PrivateKey, opts ...SetupOption) (*Core, error) {
c._applyOption(opt)
}
if c.log == nil {
c.log = log.New(ioutil.Discard, "", 0)
c.log = log.New(io.Discard, "", 0)
}
c.proto.init(c)
if err := c.links.init(c); err != nil {