ss-abramchuk / OpenVPNAdapter

Objective-C wrapper for OpenVPN library. Compatible with iOS and macOS.
GNU Affero General Public License v3.0
482 stars 215 forks source link

Get Log in Network Extension #166

Open duyhct opened 4 years ago

duyhct commented 4 years ago

Hi guys, i'm trying to get log in PacketTunnelProvider class and show it in Textview. I try save string logs in UserDefaults and call it but it's not working. Does anyone have another solutions?

ss-abramchuk commented 4 years ago

Hi @duyhct,

You may try MMWormhole to send log from extension to the app.

duyhct commented 4 years ago

I will try this! Thank you very much, @ss-abramchuk .

duyhct commented 4 years ago

Hi @ss-abramchuk , I want to get information about Connect Time when VPN connected. Did you have any parameter to get it? Or I will calculate it manually?

IMG_0535

ss-abramchuk commented 4 years ago

OpenVPNAdapter doesn't have such info but I guess you can use connectedDate property to calculate connect time.

duyhct commented 4 years ago

Thank you, @ss-abramchuk .

duyhct commented 4 years ago

Hi @ss-abramchuk , I have a question: Can I get configuration of VPN that I connected before in Settings in iDevice, when I back to my app such as connectedDate, username, password,...?