From 6365bfce4134661d822b6467fc684330af7b7f3a Mon Sep 17 00:00:00 2001 From: Judd Montgomery Date: Tue, 6 Aug 2024 12:05:17 -0400 Subject: [PATCH] This is to fix a bug. If I use the proton GTK VPN app on Linux as a user that does not have sudo access it will prompt me to select a user that does have sudo and to enter the password. It only waits for 5 seconds before a python stacktrace and it won't connect after that. --- .../linux/networkmanager/killswitch_connection_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proton/vpn/killswitch/backend/linux/networkmanager/killswitch_connection_handler.py b/proton/vpn/killswitch/backend/linux/networkmanager/killswitch_connection_handler.py index 2104390..0473fec 100644 --- a/proton/vpn/killswitch/backend/linux/networkmanager/killswitch_connection_handler.py +++ b/proton/vpn/killswitch/backend/linux/networkmanager/killswitch_connection_handler.py @@ -46,7 +46,7 @@ def _get_interface_name(permanent: bool, ipv6: bool = False, routed: bool = Fals return f"{'pvpnrouteintrf' if routed else 'pvpnksintrf'}{'1' if permanent else '0'}" -async def _wrap_future(future: concurrent.futures.Future, timeout=5): +async def _wrap_future(future: concurrent.futures.Future, timeout=300): """Wraps a concurrent.future.Future object in an asyncio.Future object.""" return await asyncio.wait_for( asyncio.wrap_future(future, loop=asyncio.get_running_loop()),