From 4fc2b4e5dba0404fe52012f1c525114a4aac44e2 Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Sat, 21 May 2022 13:05:39 -0500 Subject: [PATCH] Include argument for web server location Co-authored-by: sigonasr2 --- src/sig/ArcadeScreenshotHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sig/ArcadeScreenshotHandler.java b/src/sig/ArcadeScreenshotHandler.java index a1ec180..808a5c9 100644 --- a/src/sig/ArcadeScreenshotHandler.java +++ b/src/sig/ArcadeScreenshotHandler.java @@ -37,7 +37,7 @@ public class ArcadeScreenshotHandler { @Override public void actionPerformed(ActionEvent e) { System.out.println(e.getActionCommand()); - POSTRequest postRes = new POSTRequest("http://localhost:8080/uploadform.html",Path.of("..","screenshot.png")); + POSTRequest postRes = new POSTRequest("http://"+args[0]+"/uploadform.html",Path.of("..","screenshot.png")); try { System.out.println(((HttpResponse)postRes.run()).body()); } catch (FailedResponseException e1) {