Skip to content

Commit 9f9f28c

Browse files
committed
If a peer is 127.0.0.1, don't try to store it because we (currently...) can't
1 parent 9db3dc7 commit 9f9f28c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/auxiliary/scanner/ntp/ntp_monlist.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ def scanner_postscan(batch)
109109
print_status("#{peer} Storing #{peers.length} NTP client hosts in the database...")
110110
peers.each do |r|
111111
maddr,mport,mserv = r
112+
next if maddr == '127.0.0.1' # some NTP servers peer with themselves..., but we can't store loopback
112113
report_note(
113114
:host => maddr,
114115
:type => 'ntp.client.history',

0 commit comments

Comments
 (0)