You could remove this line instead of comment it out. Also please remove the redundant assignment of $wanip at line 2182:
```
	if (isset($dnsupdate['usepublicip'])) {
		$wanip = dyndnsCheckIP($dnsupdate['interface']);
	}
```