summaryrefslogtreecommitdiff
path: root/Echolot/Globals.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Echolot/Globals.pm')
-rw-r--r--Echolot/Globals.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Echolot/Globals.pm b/Echolot/Globals.pm
index c4db482..398c9dd 100644
--- a/Echolot/Globals.pm
+++ b/Echolot/Globals.pm
@@ -1,7 +1,7 @@
package Echolot::Globals;
# (c) 2002 Peter Palfrader <peter@palfrader.org>
-# $Id: Globals.pm,v 1.4 2002/07/16 02:48:57 weasel Exp $
+# $Id: Globals.pm,v 1.5 2003/01/02 19:02:10 weasel Exp $
#
=pod
@@ -23,7 +23,7 @@ sub init(%) {
my (%args) = @_;
my $hostname = `hostname`;
- $hostname =~ /^([a-zA-Z0-9_-]*)$/;
+ $hostname =~ /^([a-zA-Z0-9_.-]*)$/;
$hostname = $1 || 'unknown';
$GLOBALS->{'hostname'} = $hostname;
$GLOBALS->{'internalcounter'} = 1;