schwabe / ics-openvpn

OpenVPN for Android
3.25k stars 1.18k forks source link

Disable auto connection, is it possible? Resolving hostname infinitely. #1708

Open tiagopraz opened 2 months ago

tiagopraz commented 2 months ago

Hello, could you help me? I am noticing some details when the network connection is unavailable on the device. When I lose the mobile connection or disable the connection, the application stays with the "resolving host names" status for a long time. Even after I enable the connection again, it still has this status for a long time and when I check the IP address on the device, the IP address is the address of the LAN to which I was connected.

What can I do so that when I lose connection, the VPN is completely disconnected and doesn't keep trying to automatically reconnect?

schwabe commented 2 months ago

please provide a full log of the app.

tiagopraz commented 2 months ago

Log attached. Apparently when the mobile connection is disabled the application tries to resolve the hostname in IPv6. However, I do not use IPv6 on the mobile connection although my domain name has IPv6 enabled for other functions, my openvpn server is only enabled for IPv4 on tcp port 8443. Is there any option in the app to interrupt the VPN connection when the mobile connection or any other type, such as Wi-Fi, for example, is interrupted? Even after I enabled the mobile connection again, reconnection attempts stopped.

Thank you for your attention!

vpn_log.txt