mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-10 05:34:54 +00:00
Fixed ifconfig command typo
This commit is contained in:
parent
8dbe834dc3
commit
3d870629f2
@ -75,7 +75,7 @@ class Utils{
|
|||||||
$machine .= implode(" ", $matches[1]); //Mac Addresses
|
$machine .= implode(" ", $matches[1]); //Mac Addresses
|
||||||
}
|
}
|
||||||
}elseif($os === "linux"){
|
}elseif($os === "linux"){
|
||||||
@exec("ifconfig /ALL", $mac);
|
@exec("ifconfig", $mac);
|
||||||
$mac = implode("\n", $mac);
|
$mac = implode("\n", $mac);
|
||||||
if(preg_match_all("#HWaddr[ \t]{1,}([0-9a-f:]{17})#", $mac, $matches)){
|
if(preg_match_all("#HWaddr[ \t]{1,}([0-9a-f:]{17})#", $mac, $matches)){
|
||||||
foreach($matches[1] as $i => $v){
|
foreach($matches[1] as $i => $v){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user