Skip to content

Commit

Permalink
check: more strict RDNS-Checking
Browse files Browse the repository at this point in the history
The check did miss an error in jenas file: 117.10.in-addr.arpa as RDNS for net 10.17.0.0/16. This changes makes check detect that sort of error.

See icvpn-meta/#284
  • Loading branch information
Ranlvor committed Nov 18, 2015
1 parent 4c6c9d2 commit c76196f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def check_rdns(data):
if domain.endswith('.ip6.arpa') or domain.endswith('.in-addr.arpa'):
found = False
for reverse_domain in allowed_domains:
if domain.endswith(reverse_domain): # we want communitys to be able to announce only a part of the net as RDNS-capable
if domain.endswith('.' + reverse_domain) or domain == reverse_domain: # we want communitys to be able to announce only a part of the net as RDNS-capable
found = True

if not found:
Expand Down

0 comments on commit c76196f

Please sign in to comment.