blokadaorg / blokada

The official repo for Blokada apps.
https://blokada.org
3.04k stars 213 forks source link

Need description for TunnelConfiguration parameter in IOS #830

Open AbhiMakadia opened 3 years ago

AbhiMakadia commented 3 years ago

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.