File: hostname.pl.diff

package info (click to toggle)
irssi-scripts 20050401
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 836 kB
  • sloc: makefile: 42
file content (11 lines) | stat: -rw-r--r-- 409 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
--- hostname.pl.orig	2002-09-17 23:53:40.000000000 +0200
+++ hostname.pl	2004-03-11 01:06:57.000000000 +0100
@@ -116,7 +116,7 @@
 sub get_addresses {
   Irssi::print("Resolving IP addresses...");
   %addresses = ();
-  open(IFCONFIG, "ifconfig|");
+  open(IFCONFIG, "/sbin/ifconfig|");
   while (<IFCONFIG>) {
     $addresses{$2} = resolve($2)
       if (/(inet addr:|inet6 addr: |inet |inet6 )([0-9a-f.:]*)/