mirror of
https://github.com/unraid/webgui.git
synced 2026-02-16 14:08:55 -06:00
Prepare access for IPv6 only and variable interface
variable interface defaults to eth0.
This commit is contained in:
@@ -38,8 +38,10 @@ $dockerManPaths = [
|
||||
];
|
||||
|
||||
// load network variables if needed.
|
||||
if (!isset($eth0)) extract(parse_ini_file("$docroot/state/network.ini",true));
|
||||
$host = $eth0['IPADDR:0'] ?? '0.0.0.0';
|
||||
$ethX = 'eth0';
|
||||
if (!isset($$ethX)) extract(parse_ini_file("$docroot/state/network.ini",true));
|
||||
$host = ipaddr($ethX);
|
||||
$host = is_array($host) ? $host[0] : $host;
|
||||
|
||||
// get network drivers
|
||||
$driver = DockerUtil::driver();
|
||||
|
||||
Reference in New Issue
Block a user