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

Removed trailing newline from abuse address

parent be6cd874
......@@ -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 != "")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment