]> git.entuzijast.net Git - imunes.git/commitdiff
Unbreak fetching local IP addresses via netstat for addresses wih ASCII
authormarko <marko>
Fri, 8 Feb 2008 13:59:46 +0000 (13:59 +0000)
committermarko <marko>
Fri, 8 Feb 2008 13:59:46 +0000 (13:59 +0000)
representation with 13 bytes.  Previously 123.123.123.123 would be
truncated to 123.123.123.12

decentralized/memberd.tcl

index 0b20539e3a52e4fce2a89f07fd56ffab74253129..25c5a56a479de49f73febc99f4cf250697df12f9 100755 (executable)
@@ -25,7 +25,7 @@
 # SUCH DAMAGE.
 #
 
-# $Id: memberd.tcl,v 1.5 2008/01/01 18:23:00 marko Exp $
+# $Id: memberd.tcl,v 1.6 2008/02/08 13:59:46 marko Exp $
 
 
 #
@@ -682,7 +682,7 @@ set keepalive_timo 30
 set announce_delay 10
 
 set my_ip [string trim \
-    [exec netstat -in -f inet | fgrep -v "lo0 " | tail -1 | cut -c26-40]]
+    [exec netstat -in -f inet | fgrep -v "lo0 " | tail -1 | cut -c26-41]]
 set my_host_id $my_ip
 
 # Parse command-line options