ss-abramchuk / OpenVPNAdapter

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

Can we capture OpenVPN server response, such as authentication error? #198

Closed kthkaya closed 3 years ago

kthkaya commented 3 years ago

Hi,

I was wondering if it possible to capture the reason why the OpenVPN server refused the connection attempt on the IOS client? If a reason code cannot be captured, is it at least possible to derive somehow that the server did respond to the connection request, but rejected the connection for some reason?

Thanks

ss-abramchuk commented 3 years ago

Hi @kthkaya,

OpenVPNAdapterDelegate has a few methods where you can capture such response:

I think, in your case the first one is what you need.

kthkaya commented 3 years ago

Thanks Sergey!