[BUGFIX] send_no_request

This commit is contained in:
Martin/Geno 2018-07-27 20:42:03 +02:00
parent cf8aeeeb78
commit b8792a2691
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A

View File

@ -182,7 +182,7 @@ func (coll *Collector) sendUnicasts(seenBefore jsontime.Time) {
for _, node := range nodes { for _, node := range nodes {
send := 0 send := 0
for _, conn := range coll.connections { for _, conn := range coll.connections {
if node.Address.Zone != "" && conn.Conn.LocalAddr().(*net.UDPAddr).Zone != node.Address.Zone { if node.Address.Zone != "" && conn.Conn.LocalAddr().(*net.UDPAddr).Zone != node.Address.Zone && conn.SendRequest {
continue continue
} }
coll.sendPacket(conn.Conn, node.Address.IP) coll.sendPacket(conn.Conn, node.Address.IP)