mirror of
https://github.com/lucaspalomodevelop/opnsense-core.git
synced 2026-03-13 00:07:27 +00:00
temp fix for https://github.com/opnsense/core/issues/3222, partly revert adf314a4ab
This commit is contained in:
parent
c0bbb4bbcb
commit
2eabec274f
@ -2729,7 +2729,7 @@ function interface_6rd_configure($interface = 'wan', $wancfg)
|
||||
|
||||
$rd6brgw = "{$rd6prefix}{$wancfg['gateway-6rd']}";
|
||||
|
||||
$stfiface = "{$wanif}_stf";
|
||||
$stfiface = "{$interface}_stf";
|
||||
if (does_interface_exist($stfiface)) {
|
||||
legacy_interface_destroy($stfiface);
|
||||
}
|
||||
@ -2825,7 +2825,7 @@ function interface_6to4_configure($interface = 'wan', $wancfg)
|
||||
}
|
||||
$stflan = Net_IPv6::compress(implode(":", $stflanarr));
|
||||
|
||||
$stfiface = "{$wanif}_stf";
|
||||
$stfiface = "{$interface}_stf";
|
||||
if (does_interface_exist($stfiface)) {
|
||||
legacy_interface_destroy($stfiface);
|
||||
}
|
||||
@ -3656,7 +3656,7 @@ function get_real_interface($interface = 'wan', $family = 'all')
|
||||
switch (isset($cfg['ipaddrv6']) ? $cfg['ipaddrv6'] : '') {
|
||||
case '6rd':
|
||||
case '6to4':
|
||||
$wanif = "{$cfg['if']}_stf";
|
||||
$wanif = "{$interface}_stf";
|
||||
break;
|
||||
case 'pppoe':
|
||||
case 'ppp':
|
||||
|
||||
@ -80,7 +80,7 @@ class Plugin
|
||||
// generate virtual IPv6 interfaces
|
||||
foreach ($this->interfaceMapping as $key => &$intf) {
|
||||
if (!empty($intf['ipaddrv6']) && ($intf['ipaddrv6'] == '6rd' || $intf['ipaddrv6'] == '6to4')) {
|
||||
$realif = "{$intf['if']}_stf";
|
||||
$realif = "{$key}_stf";
|
||||
// create new interface
|
||||
$this->interfaceMapping[$realif] = array();
|
||||
$this->interfaceMapping[$realif]['ifconfig']['ipv6'] = $intf['ifconfig']['ipv6'];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user