ingress gateway functional

This commit is contained in:
root
2021-05-27 18:54:24 +00:00
parent 0517fa399d
commit 884037e228
23 changed files with 417 additions and 287 deletions

View File

@@ -13,7 +13,7 @@ import (
func Register(cfg config.GlobalConfig) error {
postclient := &models.ServerClient{
postclient := &models.IntClient{
AccessKey: cfg.Client.AccessKey,
PublicKey: cfg.Client.PublicKey,
PrivateKey: cfg.Client.PublicKey,
@@ -38,7 +38,7 @@ func Register(cfg config.GlobalConfig) error {
if err != nil {
return err
}
var wgclient models.ServerClient
var wgclient models.IntClient
json.Unmarshal(bodyBytes, &wgclient)
err = config.ModGlobalConfig(wgclient)
if err != nil {