move vpn tool

This commit is contained in:
2024-02-09 19:57:33 +01:00
parent 243f72c103
commit 875138142d
4 changed files with 9 additions and 13 deletions

View File

@ -1,5 +1,6 @@
#!/usr/bin/env python3
import subprocess, os
import subprocess
import os
newenv = os.environ.copy()
newenv["LD_PRELOAD"] = "/snacks/wireguard/bin/wireguard-resolve.so"

View File

@ -1,8 +1,6 @@
#!/usr/bin/env python3
import subprocess, os
newenv = os.environ.copy()
newenv["LD_PRELOAD"] = "/snacks/wireguard/bin/wireguard-resolve.so"
import subprocess
import os
def default_devices():
@ -70,7 +68,6 @@ def wireguard():
)
subprocess.run(
["nsenter", "--net=/run/vpn/net", "/snacks/wireguard/scripts/inner_basic.sh"],
env=newenv,
)