mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 10:49:10 +00:00
Merge branch 'patch-19' of https://github.com/PEMapModder/PocketMine-MP into PEMapModder-patch-19
This commit is contained in:
commit
c3e756a712
@ -112,7 +112,7 @@ class Utils{
|
||||
if(file_exists("/etc/machine-id")){
|
||||
$machine .= file_get_contents("/etc/machine-id");
|
||||
}else{
|
||||
@exec("ifconfig", $mac);
|
||||
@exec("ifconfig 2>/dev/null", $mac);
|
||||
$mac = implode("\n", $mac);
|
||||
if(preg_match_all("#HWaddr[ \t]{1,}([0-9a-f:]{17})#", $mac, $matches)){
|
||||
foreach($matches[1] as $i => $v){
|
||||
|
Loading…
x
Reference in New Issue
Block a user