From 1157c2ba5d198f2b198d557f1f4252d23f699ce6 Mon Sep 17 00:00:00 2001 From: Mafoo Date: Wed, 31 Jan 2018 04:06:24 +0000 Subject: [PATCH] Enhance Gigaset LAN IP (#2970) GIGASET Sculpture CL750A puts _ in it's lan ip account for this and perform a replacement --- app/registrations/resources/classes/registrations.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/registrations/resources/classes/registrations.php b/app/registrations/resources/classes/registrations.php index f7ee3d19d4..8b102432de 100644 --- a/app/registrations/resources/classes/registrations.php +++ b/app/registrations/resources/classes/registrations.php @@ -123,6 +123,9 @@ if (!class_exists('registrations')) { array('0','1','2','3','4','5','6','7','8','9'), $lan_ip); } + elseif(1 === preg_match('/\ACL750A/', $agent)) { + $lan_ip = preg_replace('/_/', '.', $lan_ip); + } $registrations[$id]['lan-ip'] = "".$lan_ip.""; } else { $registrations[$id]['lan-ip'] = " ";