aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com>2009-05-27 14:53:02 -0400
committerScott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com>2009-05-27 14:53:02 -0400
commit23aa7c9a09a8f40a342401786269bfd694d08262 (patch)
tree00984e205fce5ae1f0521471bc75f1baa75a1a84
parent39cdd35c50167b97b811e8e87c509055e85aa0dc (diff)
downloadpfsense-packages-23aa7c9a09a8f40a342401786269bfd694d08262.tar.gz
pfsense-packages-23aa7c9a09a8f40a342401786269bfd694d08262.tar.bz2
pfsense-packages-23aa7c9a09a8f40a342401786269bfd694d08262.zip
Add more comments. Remove trailing spaces. No functional changes.
-rw-r--r--config/tinydns/tinydns.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/config/tinydns/tinydns.inc b/config/tinydns/tinydns.inc
index 516af21e..6072f33d 100644
--- a/config/tinydns/tinydns.inc
+++ b/config/tinydns/tinydns.inc
@@ -631,12 +631,14 @@ function tinydns_get_rowline_data($recordip, $recordtype, $ttl, $hostname, $rdns
break;
case "A":
/* "=" creates both "A" and "PTR" records to allow both forward and reverse DNS */
- // =fqdn:ip:ttl:timestamp:lo
- if($rdns)
+ if($rdns) {
+ // =fqdn:ip:ttl:timestamp:lo
$record_data = "={$hostname}:{$recordip}{$ttl_string}";
- else
+ } else {
/* "+" creates "A" records only to allow forward DNS */
- $record_data = "+{$hostname}:{$recordip}{$ttl_string}";
+ // +fqdn:ip:ttl:timestamp:lo
+ $record_data = "+{$hostname}:{$recordip}{$ttl_string}";
+ }
break;
case "CNAME":
// Cfqdn:p:ttl:timestamp:lo