Skip to content

Commit

Permalink
disable cmd AutoRun commands (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakai135 authored Apr 8, 2022
1 parent d118499 commit 990f22f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wsl-vpnkit
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

CMDSHELL="$(command -v cmd.exe || echo '/mnt/c/Windows/system32/cmd.exe')"
USERPROFILE=$(wslpath "$($CMDSHELL /V:OFF /C 'echo | set /p t=%USERPROFILE%' 2>/dev/null)")
USERPROFILE=$(wslpath "$($CMDSHELL /d /v:off /c 'echo | set /p t=%USERPROFILE%' 2>/dev/null)")
WSL2_GATEWAY_IP="$(cat /etc/resolv.conf | awk '/^nameserver/ {print $2}')"
WSL2_VM_IP="$(ifconfig eth0 | awk '/inet /{print substr($2, 6)}')"
WSL2_TAP_NAME=eth0
Expand Down

0 comments on commit 990f22f

Please sign in to comment.