lib/zold/commands/routines/reconnect.rb in zold-0.14.53 vs lib/zold/commands/routines/reconnect.rb in zold-0.15.0
- old
+ new
@@ -44,10 +44,10 @@
sleep(60) unless @opts['routine-immediately']
cmd = Remote.new(remotes: @remotes, log: @log, farm: @farm)
args = ['remote', "--network=#{@opts['network']}"]
score = @farm.best[0]
args << "--ignore-node=#{score.host}:#{score.port}" if score
- cmd.run(args + ['add', 'b1.zold.io', '80']) unless @opts['routine-immediately']
+ cmd.run(args + ['defaults']) unless @opts['routine-immediately']
cmd.run(args + ['trim'])
cmd.run(args + ['select'])
cmd.run(args + ['update'] + (@opts['never-reboot'] ? [] : ['--reboot']))
@log.info("Reconnected, there are #{@remotes.all.count} remote notes: \
#{@remotes.all.map { |r| "#{r[:host]}:#{r[:port]}" }.join(', ')}")