Permalink
Browse files

Change the output of the 'route delete' commands, now it doesn't have…

… the mask info
  • Loading branch information...
1 parent 69e17e7 commit 52af9cd6d2246d42fa123014146676a8f873d230 @fivesheep committed Jan 25, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 chnroutes_ovpn_win
View
@@ -19,7 +19,7 @@ upfile.write(VPNUPBASE)
upfile.write('\n')
upfile.write('ipconfig /flushdns\n\n')
-downfile.write(VPNUPBASE)
+downfile.write("@echo off")
downfile.write('\n')
for line in handler.readlines():
@@ -37,7 +37,7 @@ for line in handler.readlines():
mask="%d.%d.%d.%d"%(int(bm[0:8],2),int(bm[8:16],2),int(bm[16:24],2),int(bm[24:32],2))
upfile.write('route add %s mask %s %s metric 5\n'%('.'.join(ip),mask,'%gw%'))
- downfile.write('route delete %s mask %s %s\n'%('.'.join(ip),mask,'%gw%'))
+ downfile.write('route delete %s\n'%('.'.join(ip)))
upfile.close()
downfile.close()

0 comments on commit 52af9cd

Please sign in to comment.