Load DERP servers from file
This commit is contained in:
parent
c5fbc5baa8
commit
a6100dc4d0
6 changed files with 87 additions and 2 deletions
2
app.go
2
app.go
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue