(0005231)
|
dloper
|
2017-04-06 03:20
|
|
add:
|| preg_match('/^virbr/', $this->iface)
in:
/usr/clearos/apps/network/libraries/Iface.php
code snippet:
public function is_configurable()
{
clearos_profile(__METHOD__, __LINE__);
// PPPoE interfaces are configurable, but only if they already configured.
if (preg_match('/^eth/', $this->iface)
|| preg_match('/^wlan/', $this->iface)
|| preg_match('/^ath/', $this->iface)
|| preg_match('/^wlp/', $this->iface)
|| preg_match('/^em/', $this->iface)
|| preg_match('/^en/', $this->iface)
|| preg_match('/^p\d+p/', $this->iface)
|| preg_match('/^br/', $this->iface)
|| preg_match('/^virbr/', $this->iface)
|| preg_match('/^bond/', $this->iface)
|| preg_match('/^netw/', $this->iface)
|| (preg_match('/^ppp/', $this->iface) && $this->is_configured())
) {
return TRUE;
} else {
return FALSE;
}
}
======================================
add:
if (preg_match('/^virbr/', $netinfo['device']))
return self::TYPE_BRIDGED;
in:
/usr/clearos/apps/network/libraries/Iface.php
code snippet:
if (isset($netinfo['device'])) {
if (preg_match('/^br/', $netinfo['device']))
return self::TYPE_BRIDGED;
if (preg_match('/^virbr/', $netinfo['device']))
return self::TYPE_BRIDGED;
if (preg_match('/^bond/', $netinfo['device']))
return self::TYPE_BONDED;
} |
|