Load DERP servers from file

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

No files matched your search

+2
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