system: switch order to unbreak server.bind in IPv6 first case; closes #4372

This commit is contained in:
Franco Fichtner 2020-09-24 10:17:21 +02:00
parent a4bcbd5a92
commit d8cc0bb123

View File

@ -45,7 +45,8 @@ function webgui_configure_do($verbose = false, $interface = '')
$interfaces = array();
if (!empty($config['system']['webgui']['interfaces'])) {
$interfaces = explode(',', $config['system']['webgui']['interfaces']);
$interfaces[] = 'lo0';
/* place loopback with good IPv4 first for server.bind */
array_unshift($interfaces, 'lo0');
}
@mkdir('/var/lib/php/sessions', 0750, true);