[prev in list] [next in list] [prev in thread] [next in thread]
List: ipcop-svn
Subject: [Ipcop-svn] SF.net SVN: ipcop:[1604]
From: eoberlander () users ! sourceforge ! net
Date: 2008-07-23 18:33:19
Message-ID: E1KLj9L-0000hf-4Z () dn4whf1 ! ch3 ! sourceforge ! com
[Download RAW message or body]
Revision: 1604
http://ipcop.svn.sourceforge.net/ipcop/?rev=1604&view=rev
Author: eoberlander
Date: 2008-07-23 18:33:18 +0000 (Wed, 23 Jul 2008)
Log Message:
-----------
Forward fix from v1.4 branch for SF Bug 1835486
Modified Paths:
--------------
ipcop/trunk/src/scripts/vpn-watch
Modified: ipcop/trunk/src/scripts/vpn-watch
===================================================================
--- ipcop/trunk/src/scripts/vpn-watch 2008-07-23 12:55:27 UTC (rev 1603)
+++ ipcop/trunk/src/scripts/vpn-watch 2008-07-23 18:33:18 UTC (rev 1604)
@@ -129,7 +129,7 @@
for ((i=1; ${i} <= ${DNS_RESOLVE_TRIES}; i++)); do
# extract IP address
- RESULT=$(/usr/bin/host -t A "$1" 2>/dev/null| awk '{ print $4 }')
+ RESULT=$(/usr/bin/host "$1" | /usr/bin/tail -1 2>/dev/null| /usr/bin/awk '{ print \
$4 }') if echo -n $RESULT | /bin/grep -q '^[[:digit:]\.]\+$' ; then
echo -n $RESULT
return
This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic