-# $Id: memberd.tcl,v 1.3 2007/07/19 01:17:06 marko Exp $
#!/usr/local/bin/tclsh8.4
#
# SUCH DAMAGE.
#
+# $Id: memberd.tcl,v 1.4 2007/10/21 16:59:32 marko Exp $
+
#
# host_id, peer_id -> ip_address in A.B.C.D form
#
set announce_delay 10
set my_ip [string trim \
- [exec netstat -in -f inet | head -2 | tail -1 | cut -c26-40]]
+ [exec netstat -in -f inet | fgrep -v "lo0 " | tail -1 | cut -c26-40]]
set my_host_id $my_ip
# Parse command-line options