Load DERP servers from file

This commit is contained in:
Juan Font Alonso 2021-02-20 23:57:06 +01:00
parent c5fbc5baa8
commit a6100dc4d0
6 changed files with 87 additions and 2 deletions

2
app.go
View file

@ -5,6 +5,7 @@ import (
"io/ioutil"
"github.com/gin-gonic/gin"
"tailscale.com/tailcfg"
"tailscale.com/wgengine/wgcfg"
)
@ -12,6 +13,7 @@ type Config struct {
ServerURL string
Addr string
PrivateKeyPath string
DerpMap *tailcfg.DERPMap
DBhost string
DBport int