mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-11 01:54:34 +08:00
add port to token
This commit is contained in:
parent
778bdef485
commit
3d685e15c0
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue