mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-27 02:41:26 +08:00
ingress gateway functional
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user