diff --git a/lib/kamal/cli/port_forwarding.rb b/lib/kamal/cli/port_forwarding.rb index 7465795a..7664d667 100644 --- a/lib/kamal/cli/port_forwarding.rb +++ b/lib/kamal/cli/port_forwarding.rb @@ -26,10 +26,10 @@ class Kamal::Cli::PortForwarding @threads = hosts.map do |host| Thread.new do Net::SSH.start(host, KAMAL.config.ssh.user) do |ssh| - ssh.forward.remote(port, "localhost", port, "localhost") + ssh.forward.remote(port, "127.0.0.1", port) ssh.loop(0.1) do if @done - ssh.forward.cancel_remote(port, "localhost") + ssh.forward.cancel_remote(port) break else true