Commit a937235f authored by Cool Fire (HN)'s avatar Cool Fire (HN)
Browse files

Removed trailing newline from abuse address

parent be6cd874
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -76,7 +76,7 @@ iplist.each do |ip|
		dns_req = "#{quads[3]}.#{quads[2]}.#{quads[1]}.#{quads[0]}.abuse-contacts.abusix.org"

		# Request abuse contact address from abusix.org
		abuse_contact = %x(dig -t TXT +short #{dns_req}).gsub!(/"/, '')
		abuse_contact = %x(dig -t TXT +short #{dns_req}).gsub!(/"/, '').gsub!(/\n/, '')
		
		# Check if we have in fact receive an abuse contact
		if(!abuse_contact.nil? && abuse_contact != "")