lib/riddle/0.9.9/configuration/searchd.rb in riddle-2.1.0 vs lib/riddle/0.9.9/configuration/searchd.rb in riddle-2.2.0
- old
+ new
@@ -19,10 +19,10 @@
@listen = []
@listen << @port.to_s if @port
@listen << "9306:mysql41" if @mysql41.is_a?(TrueClass)
@listen << "#{@mysql41}:mysql41" if @mysql41.is_a?(NUMBER)
- @listen.each { |l| l.insert(0, "#{@address}:") } if @address
+ @listen = @listen.collect { |line| "#{@address}:#{line}" } if @address
end
def settings
@listen.nil? ? super : super - [:address, :port]
end