Navigation Menu

Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
report the server's address, too
  • Loading branch information
kohsuke committed Aug 5, 2016
1 parent 341ed72 commit ab57c02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/java/hudson/TcpSlaveAgentListener.java
Expand Up @@ -275,6 +275,7 @@ private void respondHello(String header, Socket s) throws IOException {
o.write("Jenkins-Version: " + Jenkins.VERSION + "\r\n");
o.write("Jenkins-Session: " + Jenkins.SESSION_HASH + "\r\n");
o.write("Client: " + s.getInetAddress().getHostAddress() + "\r\n");
o.write("Server: " + serverSocket.socket().getInetAddress().getHostAddress() + "\r\n");
o.flush();
s.shutdownOutput();
} else {
Expand Down

0 comments on commit ab57c02

Please sign in to comment.