Skip to content

Commit 1feebe5

Browse files
committed
dispatcher hostname fixup
1 parent c6c1aef commit 1feebe5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/ruby-debug-ide.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ def start_control(host, port, notify_dispatcher)
133133

134134
while (session_addrinfo = server.accept)
135135
server.close
136-
session, addrinfo = session_addrinfo
137-
ip_address = addrinfo.ip_address
136+
session, _ = session_addrinfo
137+
hostname = Socket.gethostname
138138

139-
$stderr.puts "Connected from #{ip_address}" if Debugger.cli_debug
139+
$stderr.puts "Connected from #{hostname}" if Debugger.cli_debug
140140
dispatcher = ENV['IDE_PROCESS_DISPATCHER']
141141
if dispatcher
142142
ENV['IDE_PROCESS_DISPATCHER'] = "#{ip_address}:#{dispatcher}" unless dispatcher.include?(":")

0 commit comments

Comments
 (0)