Fixes here and there

This commit is contained in:
Juan Font Alonso
2021-02-21 23:54:15 +01:00
parent 1b7d99d483
commit 563f3c4017
2 changed files with 5 additions and 5 deletions

4
app.go
View File

@@ -2,8 +2,8 @@ package headscale
import (
"fmt"
"io/ioutil"
"log"
"os"
"github.com/gin-gonic/gin"
"tailscale.com/tailcfg"
@@ -34,7 +34,7 @@ type Headscale struct {
// NewHeadscale returns the Headscale app
func NewHeadscale(cfg Config) (*Headscale, error) {
content, err := ioutil.ReadFile(cfg.PrivateKeyPath)
content, err := os.ReadFile(cfg.PrivateKeyPath)
if err != nil {
return nil, err
}