Add cmd to start the vpn-kit wsl2 instance

This commit is contained in:
Philip Henning 2021-09-29 21:16:09 +02:00
parent d5d3d37a68
commit 80c99dc027

View file

@ -23,3 +23,8 @@ export DOTNET_ROOT
XDG_CONFIG_HOME="{{@@ env['HOME'] @@}}/.config"
export XDG_CONFIG_HOME
{%@@ endif @@%}
{%@@ if profile == 'AINCRAD-wsl' or profile == 'AINCRAD' or profile == 'YOETUNHEIMR-wsl' or profile == 'yoetunheimr' @@%}
# Run VPN-Kit alpine VM to route traffic through Windows and if connected through VPNs
wsl.exe -d wsl-vpnkit service wsl-vpnkit start
{%@@ endif @@%}