From ca6f399c045d5caa21835f762cde877bf2b80ad6 Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Tue, 16 May 2017 22:54:21 +0200 Subject: [pkg] install and use static openvpn from bundle --- src/leap/bitmask/vpn/_config.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/leap/bitmask/vpn/_config.py') diff --git a/src/leap/bitmask/vpn/_config.py b/src/leap/bitmask/vpn/_config.py index 421d15a6..5bb61e78 100644 --- a/src/leap/bitmask/vpn/_config.py +++ b/src/leap/bitmask/vpn/_config.py @@ -22,6 +22,12 @@ if IS_LINUX: return pkg_resources.resource_filename( 'leap.bitmask.vpn.helpers.linux', 'se.leap.bitmask.bundle.policy') + def get_bitmask_openvpn_path(): + if STANDALONE: + return os.path.join(here(), "..", "apps", "vpn", + "openvpn.leap") + # else nothing, we're only shipping the openvpn binary with bundles + class _TempVPNConfig(object): """Current VPN code on bitmask depends on VPNConfig object, this temporary -- cgit v1.2.3