Need description for TunnelConfiguration parameter in IOS

Need description for TunnelConfiguration parameter in IOS

I looked into Wireguard VPN integration in the code where, I found a structure which has following detail for VPN configuration.

struct TunnelConfig {
var privateKey: String
var gatewayId: String
var gatewayIpv4: String
var gatewayIpv6: String
var gatewayPort: String
var vip4: String
var vip6: String
}

can you please share some detail description for every variable usage description?
Because, the basic WireGuard configuration has following things:

[Interface]
Address = x.x.x.x/xx
PrivateKey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
DNS = x.x.x.x

[Peer]
PublicKey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Endpoint = x.x.x.x:xxxx
AllowedIPs = x.x.x.x/x

Thanks.

2 Likes