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

Update awdl.go to use new link stuff (untested)

This commit is contained in:
Neil Alexander
2019-01-19 00:42:53 +00:00
parent 4ae36dfffe
commit c51a3340b1
3 changed files with 94 additions and 9 deletions

View File

@ -35,7 +35,7 @@ func (l *link) init(c *Core) error {
return nil
}
func (l *link) create(fromlink chan []byte, tolink chan []byte /*boxPubKey *crypto.BoxPubKey, sigPubKey *crypto.SigPubKey*/, name string) (*linkInterface, error) {
func (l *link) create(fromlink chan []byte, tolink chan []byte, name string) (*linkInterface, error) {
intf := linkInterface{
link: l,
fromlink: fromlink,
@ -101,7 +101,7 @@ func (l *link) shutdown(identity string) error {
l.mutex.Unlock()
return nil
} else {
return errors.New(fmt.Sprintf("Interface '%s' doesn't exist or already shutdown", identity))
return fmt.Errorf("interface '%s' doesn't exist or already shutdown", identity)
}
}