lib/envoy/server/trunk.rb in envoy-proxy-0.0.8 vs lib/envoy/server/trunk.rb in envoy-proxy-0.0.9
- old
+ new
@@ -44,14 +44,15 @@
send_object :message, "labels may not contain dots"
true
end
end
hosts << SecureRandom.random_number(36 ** 4).to_s(36) if hosts.empty?
- send_object :message, "Local server on port #{options[:local_port]} is now publicly available via:"
+ m = ["Local server on port #{options[:local_port]} is now publicly available via:"]
@hosts = hosts.each do |host|
Trunk.trunks[host] << self
- send_object :message, "http://#{host}.#{$zone}/"
+ m << "http://#{host}.#{$zone}/"
end
+ send_object :message, m.join("\n")
end
def unbind
hosts.each do |host|
Trunk.trunks[host].delete self