diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-12-21 17:31:55 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-12-21 17:31:55 +0000 |
commit | 771df54ef12e43bbdc9b38567135f95f98d96945 (patch) | |
tree | 2ed940b1ab0db01616d8979506c26d80db1f551f | |
parent | 2ec2a374685c2141f4825097057a0496a4d45bc3 (diff) | |
download | pfsense-771df54ef12e43bbdc9b38567135f95f98d96945.zip pfsense-771df54ef12e43bbdc9b38567135f95f98d96945.tar.gz |
More fine grained update of dyndns and dnsupdate.
-rwxr-xr-x | etc/rc.dyndns.update | 2 | ||||
-rwxr-xr-x | etc/rc.newwanip | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.dyndns.update b/etc/rc.dyndns.update index 87c6af9..a84cadd 100755 --- a/etc/rc.dyndns.update +++ b/etc/rc.dyndns.update @@ -36,7 +36,7 @@ require_once("shaper.inc"); /* Interface IP address has changed */ -$argument = str_replace("\n", "", $argv[1]); +$argument = trim($argv[1], " \n"); if(empty($argument)) services_dyndns_configure(); diff --git a/etc/rc.newwanip b/etc/rc.newwanip index db381bd..8ec4687 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -86,7 +86,7 @@ if (isset($config['system']['dnsallowoverride'])) system_resolvconf_generate(true); /* perform RFC 2136 DNS update */ -services_dnsupdate_process(); +services_dnsupdate_process($interface); /* write current WAN IP to file */ $fd = fopen("{$g['vardb_path']}/{$interface}_ip", "w"); |