mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-29 20:45:20 +00:00
Clarifying relation between host/port variables as used by Remoting-based CLI vs. other protocol clients.
This commit is contained in:
1 parent
4b566a1ef0
commit
aebb3b235b
2 files changed
+7
-7
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user