Skip to content
Permalink
Browse files

python: Give better information when starting background VPN sessions

Signed-off-by: David Sommerseth <davids@openvpn.net>
  • Loading branch information...
dsommers committed May 23, 2019
1 parent f2bf676 commit 03b15fa00c0f7a4f31f8d2e8c5caad1a3e13941f
Showing with 13 additions and 5 deletions.
  1. +13 −5 src/python/openvpn2
@@ -250,11 +250,19 @@ def start_tunnel(bus, cfgobj, background_mode, verb):

if connected:
# Print important details to the terminal ...
print('Running connection in the background. To manage '
+ 'this connection, use')
print('the openvpn3 command line tool with the session '
+ 'path below:')
print('>>> Session path: ' + sessionobj.GetPath())
print('VPN session is running in the background.')
print('Session path: ' + sessionobj.GetPath())
print()
print('Use the \'openvpn3 session-manage\' command line '
+ 'tool to manage this session.')
print('See \'openvpn3 session-manage --help\' and '
+'\'openvpn3 sessions-list\' for more details')
print()
print('To disconnect and stop this VPN session run:')
print()
print(' $ openvpn3 session-manage --session-path '
+ sessionobj.GetPath() + ' --disconnect')
print()
done = True

except dbus.exceptions.DBusException as excep:

0 comments on commit 03b15fa

Please sign in to comment.
You can’t perform that action at this time.