add port to token

This commit is contained in:
afeiszli 2021-06-01 19:32:20 +00:00
parent 778bdef485
commit 3d685e15c0

View file

@ -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))