Project

General

Profile

« Previous | Next » 

Revision 30ceda44

Added by Marc Dequènes over 13 years ago

  • ID 30ceda44571724080f101a12a17f798a3b0c68d3

[fix] Botnet/Task: a short peer name is an implicit way to look for a local bot

View differences:

lib/cyborghood/cyborg/botnet/task.rb
if peer == :self
logger.debug "Task '#{@name}': Talking to oneself"
else
# convert short peer name to full (implicitly means local)
peer = "#{peer}@#{@bot.host_fqdn}" unless peer.index("@")
logger.debug "Task '#{@name}': Trying to contact peer '#{peer}'"
end

Also available in: Unified diff