Fixes here and there
This commit is contained in:
parent
1b7d99d483
commit
563f3c4017
2 changed files with 5 additions and 5 deletions
4
app.go
4
app.go
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue