Skip to content

Commit

Permalink
Remove pause
Browse files Browse the repository at this point in the history
  • Loading branch information
diev committed Nov 14, 2018
1 parent e84cf45 commit 25d1706
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
## v1

### 1.0
#### 1.0.2 (2018-11-14): Remove pause
- Удален отладочный останов
#### 1.0.1 (2018-11-14): Initial commit
- Код программы упрощен на прямое использование номера интерфейса
#### 1.0.0 (2018-11-14): Initial release
Expand Down
3 changes: 1 addition & 2 deletions vpn/always_vpn.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@echo off
set version=1.0.1
set version=1.0.2
title Always VPN v%version%
color 1B

Expand All @@ -11,7 +11,6 @@ for /f "tokens=5,*" %%i in ('netsh int ipv4 show route ^| find "0.0.0.0/0"') do
netsh int ipv4 delete route 0.0.0.0/0 int=%%i
netsh int ipv4 add route %ip%/32 int=%%i %%j
))
pause

for /f "tokens=4,* skip=3" %%i in ('netsh int ipv4 show int') do if "%%j" == "%vpn%" goto :eof

Expand Down

0 comments on commit 25d1706

Please sign in to comment.