From 7b94011f51ff0c4c4791ebb8f917f212ef8ea7e4 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Fri, 1 Sep 2023 16:06:21 -0400 Subject: [PATCH] Fix Go errors --- nebula/control.go | 2 +- nebula/go.mod | 2 +- nebula/go.sum | 4 ++-- nebula/mobileNebula.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nebula/control.go b/nebula/control.go index 455200b..8e14bc0 100644 --- a/nebula/control.go +++ b/nebula/control.go @@ -54,7 +54,7 @@ func NewNebula(configData string, key string, logFile string, tunFd int) (*Nebul ctrl, err := nebula.Main(c, false, "", l, &tunFd) if err != nil { switch v := err.(type) { - case util.ContextualError: + case *util.ContextualError: v.Log(l) return nil, v.Unwrap() default: diff --git a/nebula/go.mod b/nebula/go.mod index d6cd4c6..b43a904 100644 --- a/nebula/go.mod +++ b/nebula/go.mod @@ -38,7 +38,7 @@ require ( golang.org/x/net v0.14.0 // indirect golang.org/x/sys v0.11.0 // indirect golang.org/x/term v0.11.0 // indirect - golang.org/x/tools v0.12.0 // indirect + golang.org/x/tools v0.12.1-0.20230818130535-1517d1a3ba60 // indirect golang.zx2c4.com/wintun v0.0.0-20230126152724-0fa3db229ce2 // indirect golang.zx2c4.com/wireguard v0.0.0-20230704135630-469159ecf7d1 // indirect golang.zx2c4.com/wireguard/windows v0.5.3 // indirect diff --git a/nebula/go.sum b/nebula/go.sum index 90c47bb..ef6b0f2 100644 --- a/nebula/go.sum +++ b/nebula/go.sum @@ -202,8 +202,8 @@ golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.12.0 h1:YW6HUoUmYBpwSgyaGaZq1fHjrBjX1rlpZ54T6mu2kss= -golang.org/x/tools v0.12.0/go.mod h1:Sc0INKfu04TlqNoRA1hgpFZbhYXHPr4V5DzpSBTPqQM= +golang.org/x/tools v0.12.1-0.20230818130535-1517d1a3ba60 h1:o4bs4seAAlSiZQAZbO6/RP5XBCZCooQS3Pgc0AUjWts= +golang.org/x/tools v0.12.1-0.20230818130535-1517d1a3ba60/go.mod h1:Sc0INKfu04TlqNoRA1hgpFZbhYXHPr4V5DzpSBTPqQM= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/nebula/mobileNebula.go b/nebula/mobileNebula.go index be944b0..650beb0 100644 --- a/nebula/mobileNebula.go +++ b/nebula/mobileNebula.go @@ -149,7 +149,7 @@ func TestConfig(configData string, key string) error { _, err = nebula.Main(c, true, "", l, nil) if err != nil { switch v := err.(type) { - case util.ContextualError: + case *util.ContextualError: return v.Unwrap() default: return err