passepartoutvpn / tunnelkit

VPN client library for Apple platforms.
GNU General Public License v3.0
9 stars 8 forks source link

Get data send and receive with WireGuard #274

Closed DinhILGMedia closed 2 years ago

DinhILGMedia commented 2 years ago

Hello, Im using this framework. I can connect VPN throught OpenVPN and WireGuard. With OpenVPN, i get data send and receive by: OpenVPN.ProviderConfiguration.dataCount But with WireGuard, i dont know how to get it. Anyone can help me ? Thanks you so much

keeshux commented 2 years ago

That information is not available to WireGuard tunnels unfortunately.

DinhILGMedia commented 2 years ago

How can i setup to get it ? thanks

keeshux commented 2 years ago

You should modify code inside WireGuardKit, which is out of the scope of TunnelKit.