mirror of
https://github.com/unraid/webgui.git
synced 2026-01-13 21:20:01 -06:00
Fix IPv6 network detection for Docker custom networks
This commit is contained in:
@@ -25,11 +25,8 @@ $DockerStopped = pgrep('dockerd')===false;
|
||||
|
||||
function strposX($s, $c, $n=1) {
|
||||
$p = 0;
|
||||
while ($p = strpos($s,$c,$p)!==false) {
|
||||
if (!--$n) return $p;
|
||||
$p++;
|
||||
}
|
||||
return false;
|
||||
while ($n && $p=strpos($s,$c,$p)!==false) {$n--; $p+=strlen($c);}
|
||||
return $p;
|
||||
}
|
||||
|
||||
unset($custom,$other);
|
||||
|
||||
Reference in New Issue
Block a user