mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-14 15:56:48 +03:00
Migrating changes made by @yberkholz in c90233d6e2 into 3.0
This commit is contained in:
committed by
Ben Ramsey
parent
2053cd3633
commit
505b2ac498
@@ -38,19 +38,20 @@ class SystemNodeProvider implements NodeProviderInterface
|
||||
*/
|
||||
protected function getIfconfig()
|
||||
{
|
||||
ob_start();
|
||||
switch (strtoupper(substr(php_uname('a'), 0, 3))) {
|
||||
case 'WIN':
|
||||
$ifconfig = `ipconfig /all 2>&1`;
|
||||
passthru('ipconfig /all 2>&1');
|
||||
break;
|
||||
case 'DAR':
|
||||
$ifconfig = `ifconfig 2>&1`;
|
||||
passthru('ifconfig 2>&1');
|
||||
break;
|
||||
case 'LIN':
|
||||
default:
|
||||
$ifconfig = `netstat -ie 2>&1`;
|
||||
passthru('netstat -ie 2>&1');
|
||||
break;
|
||||
}
|
||||
|
||||
return $ifconfig;
|
||||
return ob_get_clean();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user