From dafda2310d1f55c800826fa050cb6dd3b8a83b38 Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Sun, 6 Jul 2014 02:24:06 +0200 Subject: [PATCH] ajout de l'IP du visiteur en proposition de valeur pour un RR --- www/lib/DNSManager.pm | 4 +++- www/views/details.tt | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/www/lib/DNSManager.pm b/www/lib/DNSManager.pm index 25d9b76..ef954ca 100755 --- a/www/lib/DNSManager.pm +++ b/www/lib/DNSManager.pm @@ -283,6 +283,7 @@ prefix '/domain' => sub { , admin => session('admin') , domain => param('domain') , domain_zone => $zone->output() + , user_ip => request->address , expert => true }; } else @@ -298,7 +299,8 @@ prefix '/domain' => sub { , cname => $zone->cname() , ptr => $zone->ptr() , mx => $zone->mx() - , ns => $zone->ns() }; + , ns => $zone->ns() + , user_ip => request->address }; } } diff --git a/www/views/details.tt b/www/views/details.tt index 1a248d4..296fb86 100644 --- a/www/views/details.tt +++ b/www/views/details.tt @@ -151,6 +151,7 @@
+ Votre adresse IP : <% user_ip %>