Commit 99fcaa5f authored by Florian Schaal's avatar Florian Schaal

IPv6 - assign address (Fixes #3733)

parent b0fb62f4
......@@ -110,7 +110,7 @@ class network_settings_plugin {
/*
* don't insert the main-ip again!
*/
if ($rec['ip_address'] != $server_config['ip_address'])
if ($rec['ip_address'] != $server_config['ip_address'] && filter_var($rec['ip_address'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV4))
{
$ip_records[$n] = array(
'id' => $n,
......@@ -188,7 +188,7 @@ class network_settings_plugin {
/*
* don't insert the main-ip again!
*/
if ($rec['ip_address'] != $server_config['ip_address'])
if ($rec['ip_address'] != $server_config['ip_address'] && filter_var($rec['ip_address'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV4))
{
$ip_records[$n] = array(
'id' => $n,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment