aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CatDap/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CatDap/Controller')
-rw-r--r--lib/CatDap/Controller/user.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CatDap/Controller/user.pm b/lib/CatDap/Controller/user.pm
index 8c14cfd..6f8ac9f 100644
--- a/lib/CatDap/Controller/user.pm
+++ b/lib/CatDap/Controller/user.pm
@@ -118,7 +118,8 @@ sub get_keyprefix : Private {
if ($c->req->address =~ m/:/) {
# For IPv6 the first 3 can be special and shared by many people,
# bytes 6-8 are more interesting
- $keyprefix = sprintf( "%02x%02x%02x", splice(5, 3, split /:/, $c->req->address));
+ my @address_chunks = split /:/, $c->req->address;
+ $keyprefix = sprintf( "%02x%02x%02x", splice(@address_chunks, 5, 3));
}
else {
$keyprefix = sprintf( "%02x%02x%02x", split /\./, $c->req->address );
='ctrl'>
authorPablo Saratxaga <pablo@mandriva.com>1999-09-30 00:22:07 +0000
committerPablo Saratxaga <pablo@mandriva.com>1999-09-30 00:22:07 +0000
commitdadaa56cd93005872900da1b75432b062f9fa960 (patch)
tree72cb19551fc2e5fd819c87d375c64ebda82a6938 /perl-install/share/po/no.po
parent0b811827e45c7217cad3b5d77260e2bc7fb8a7d2 (diff)
downloaddrakx-backup-do-not-use-dadaa56cd93005872900da1b75432b062f9fa960.tar
drakx-backup-do-not-use-dadaa56cd93005872900da1b75432b062f9fa960.tar.gz
drakx-backup-do-not-use-dadaa56cd93005872900da1b75432b062f9fa960.tar.bz2
drakx-backup-do-not-use-dadaa56cd93005872900da1b75432b062f9fa960.tar.xz
drakx-backup-do-not-use-dadaa56cd93005872900da1b75432b062f9fa960.zip
updates