Project

General

Profile

« Previous | Next » 

Revision 27f89b06

Added by Viktor Gurov over 4 years ago

Do not run rc.newwanip if received DHCP address has not changed. Fixes #11142

View differences:

src/etc/rc.newwanip
226 226
 * Even with the same IP the VPN software is unhappy with the IP disappearing, and we
227 227
 * could be failing back in which case we need to switch IPs back anyhow.
228 228
 */
229
if (!is_ipaddr($oldip) || $curwanip != $oldip || !is_ipaddrv4($config['interfaces'][$interface]['ipaddr'])) {
229
if (!is_ipaddr($oldip) || ($curwanip != $oldip) ||
230
    (!is_ipaddrv4($config['interfaces'][$interface]['ipaddr']) && ($config['interfaces'][$interface]['ipaddr'] != 'dhcp'))) {
230 231
	/*
231 232
	 * Some services (e.g. dyndns, see ticket #4066) depend on
232 233
	 * filter_configure() to be called before, otherwise pass out

Also available in: Unified diff