From 78543a987053688b7e118e9c11f0905c1c06dad0 Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Mon, 23 Oct 2023 09:33:03 -0400 Subject: [PATCH] Fixing `-direct` (#689) --- src/main/java/hudson/remoting/Launcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/hudson/remoting/Launcher.java b/src/main/java/hudson/remoting/Launcher.java index 58c5e0265..4c6393d46 100644 --- a/src/main/java/hudson/remoting/Launcher.java +++ b/src/main/java/hudson/remoting/Launcher.java @@ -416,7 +416,7 @@ public void run() throws CmdLineException, IOException, InterruptedException { if(connectionTarget!=null) { runAsTcpClient(); } else - if (agentJnlpURL != null || !urls.isEmpty()) { + if (agentJnlpURL != null || !urls.isEmpty() || directConnection != null) { if (agentJnlpURL != null) { bootstrapInboundAgent(); }