From 3d685e15c09dde3034503b1b25d9ce6d02d01009 Mon Sep 17 00:00:00 2001 From: afeiszli Date: Tue, 1 Jun 2021 19:32:20 +0000 Subject: [PATCH] add port to token --- controllers/networkHttpController.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/networkHttpController.go b/controllers/networkHttpController.go index be0778c3..09201945 100644 --- a/controllers/networkHttpController.go +++ b/controllers/networkHttpController.go @@ -631,7 +631,7 @@ func CreateAccessKey(accesskey models.AccessKey, network models.Network) (models netID := network.NetID grpcaddress := servercfg.GetGRPCHost() + ":" + servercfg.GetGRPCPort() apiaddress := servercfg.GetAPIHost() + ":" + servercfg.GetAPIPort() - wgport := servercfg.GetGRPWGCPort() + wgport := servercfg.GetGRPCWGPort() accessstringdec := wgport + "|" +grpcaddress + "|" + apiaddress + "|" + netID + "|" + accesskey.Value + "|" + privAddr accesskey.AccessString = base64.StdEncoding.EncodeToString([]byte(accessstringdec))