diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-09-08 03:32:46 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2020-09-08 20:09:48 +0200 |
commit | a0e67fe3feb5b3a2d6d0f8e5f33ff96007955b17 (patch) | |
tree | cda0ca1934af399385c21a67fe56b55577c7c2a5 /pkg/vpn/launcher_linux.go | |
parent | e591c3147e3c504611ff612e8918018125ffa2eb (diff) |
[feat] lookup the config vars at runtime
- Resolves: #326
Diffstat (limited to 'pkg/vpn/launcher_linux.go')
-rw-r--r-- | pkg/vpn/launcher_linux.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/vpn/launcher_linux.go b/pkg/vpn/launcher_linux.go index 1280eae..3a29789 100644 --- a/pkg/vpn/launcher_linux.go +++ b/pkg/vpn/launcher_linux.go @@ -29,7 +29,10 @@ import ( ) const ( - systemOpenvpnPath = "/usr/sbin/openvpn" + systemOpenvpnPath = "/usr/sbin/openvpn" +) + +var ( snapOpenvpnPath = "/snap/bin/" + config.BinaryName + ".openvpn" snapBitmaskRootPath = "/snap/bin/" + config.BinaryName + ".bitmask-root" ) |