added flag to add custom metadata

This commit is contained in:
2023-09-27 17:27:52 +01:00
parent 7ed25ef4b3
commit 96e755bc19
8 changed files with 115 additions and 2 deletions

View File

@@ -212,6 +212,7 @@ func Server() (*gin.Engine, error) {
ProxyIpAddr.Name = config.MachineName
ProxyIpAddr.NAT = "False"
ProxyIpAddr.EscapeImplementation = "FRP"
//ProxyIpAddr.CustomInformationKey = p2p.GenerateHashSHA256(config.IPTableKey)
// append the following to the ip table
table.IpAddress = append(table.IpAddress, ProxyIpAddr)