Clarifying relation between host/port variables as used by Remoting-based CLI vs. other protocol clients.

This commit is contained in:
Jesse Glick committed 2017-10-27 10:37:46 -04:00
1 parent 4b566a1ef0
commit aebb3b235b
2 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -2024,7 +2024,7 @@ public class Functions {
rsp.setHeader("X-Jenkins-Session", Jenkins.SESSION_HASH);
TcpSlaveAgentListener tal = j.tcpSlaveAgentListener;
if (tal !=null) {
if (tal != null) { // headers used only by deprecated Remoting-based CLI
int p = tal.getAdvertisedPort();
rsp.setIntHeader("X-Hudson-CLI-Port", p);
rsp.setIntHeader("X-Jenkins-CLI-Port", p);