renamed uapiConn and lint errors

This commit is contained in:
mlsmaycon
2021-06-07 00:35:17 +02:00
parent 698ebe2287
commit caf2229d3b
2 changed files with 9 additions and 3 deletions

View File

@@ -17,6 +17,9 @@ func assignAddr(address string, tunDevice tun.Device) error {
var err error
attrs := netlink.NewLinkAttrs()
attrs.Name, err = tunDevice.Name()
if err != nil {
return err
}
link := wgLink{
attrs: &attrs,