Revision c7127a13
Added by Jim Pingle over 9 years ago
src/usr/local/www/services_rfc2136.php | ||
---|---|---|
123 | 123 |
|
124 | 124 |
|
125 | 125 |
$iflist = get_configured_interface_with_descr(); |
126 |
$groupslist = return_gateway_groups_array(); |
|
126 | 127 |
|
127 | 128 |
$i = 0; |
128 | 129 |
foreach ($a_rfc2136 as $rfc2136): |
... | ... | |
136 | 137 |
break; |
137 | 138 |
} |
138 | 139 |
} |
140 |
foreach ($groupslist as $if => $group) { |
|
141 |
if ($rfc2136['interface'] == $if) { |
|
142 |
print($if); |
|
143 |
break; |
|
144 |
} |
|
145 |
} |
|
139 | 146 |
?> |
140 | 147 |
</td> |
141 | 148 |
<td> |
... | ... | |
147 | 154 |
<td> |
148 | 155 |
<?php |
149 | 156 |
$filename = "{$g['conf_path']}/dyndns_{$rfc2136['interface']}_rfc2136_" . escapeshellarg($rfc2136['host']) . "_{$rfc2136['server']}.cache"; |
157 |
$if = get_failover_interface($rfc2136['interface']); |
|
150 | 158 |
|
151 | 159 |
if (file_exists($filename)) { |
152 | 160 |
print('IPv4: '); |
153 | 161 |
if (isset($rfc2136['usepublicip'])) { |
154 |
$ipaddr = dyndnsCheckIP($rfc2136['interface']);
|
|
162 |
$ipaddr = dyndnsCheckIP($if);
|
|
155 | 163 |
} else { |
156 |
$ipaddr = get_interface_ip($rfc2136['interface']);
|
|
164 |
$ipaddr = get_interface_ip($if);
|
|
157 | 165 |
} |
158 | 166 |
|
159 | 167 |
$cached_ip_s = explode("|", file_get_contents($filename)); |
... | ... | |
175 | 183 |
|
176 | 184 |
if (file_exists("{$filename}.ipv6")) { |
177 | 185 |
print('IPv6: '); |
178 |
$ipaddr = get_interface_ipv6($rfc2136['interface']);
|
|
186 |
$ipaddr = get_interface_ipv6($if);
|
|
179 | 187 |
$cached_ip_s = explode("|", file_get_contents("{$filename}.ipv6")); |
180 | 188 |
$cached_ip = $cached_ip_s[0]; |
181 | 189 |
|
Also available in: Unified diff
Implement Multi-WAN for RFC2136.
A failover gateway group may be selected similar to the other DynDNS styles.