mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-05 19:37:17 +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
|
||||
}
|
||||
}elseif($os === "linux"){
|
||||
@exec("ifconfig /ALL", $mac);
|
||||
@exec("ifconfig", $mac);
|
||||
$mac = implode("\n", $mac);
|
||||
if(preg_match_all("#HWaddr[ \t]{1,}([0-9a-f:]{17})#", $mac, $matches)){
|
||||
foreach($matches[1] as $i => $v){
|
||||
@ -389,4 +389,4 @@ class Utils{
|
||||
return $ret;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user