Browse Source

add port to token

afeiszli 4 years ago
parent
commit
3d685e15c0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controllers/networkHttpController.go

+ 1 - 1
controllers/networkHttpController.go

@@ -631,7 +631,7 @@ func CreateAccessKey(accesskey models.AccessKey, network models.Network) (models
 	netID := network.NetID
 	netID := network.NetID
 	grpcaddress := servercfg.GetGRPCHost() + ":" + servercfg.GetGRPCPort()
 	grpcaddress := servercfg.GetGRPCHost() + ":" + servercfg.GetGRPCPort()
 	apiaddress := servercfg.GetAPIHost() + ":" + servercfg.GetAPIPort()
 	apiaddress := servercfg.GetAPIHost() + ":" + servercfg.GetAPIPort()
-	wgport := servercfg.GetGRPWGCPort()
+	wgport := servercfg.GetGRPCWGPort()
 
 
 	accessstringdec := wgport + "|" +grpcaddress + "|" + apiaddress + "|" + netID + "|" + accesskey.Value + "|" + privAddr
 	accessstringdec := wgport + "|" +grpcaddress + "|" + apiaddress + "|" + netID + "|" + accesskey.Value + "|" + privAddr
 	accesskey.AccessString = base64.StdEncoding.EncodeToString([]byte(accessstringdec))
 	accesskey.AccessString = base64.StdEncoding.EncodeToString([]byte(accessstringdec))