system: this probably works better #6227

This commit is contained in:
Franco Fichtner 2023-01-16 11:03:26 +01:00
parent b13232391e
commit 7ac205d7b4

View File

@ -136,7 +136,7 @@ class Gateways
case 'pptp':
if (!empty($this->configHandle->ppps)) {
foreach ($this->configHandle->ppps->children() as $ppp) {
if ($realif == $ppp['if']) {
if ($realif == $ppp->if) {
$ports = explode(',', $ppp->ports);
$realif = $this->getRealInterface($definedIntf, $ports[0]);
break;