From 3dab657bd620e589a094bb23848be93e6f783cb3 Mon Sep 17 00:00:00 2001 From: Faiq Sohail Date: Mon, 17 Jun 2019 23:11:26 -0600 Subject: [PATCH] Reflect changes to show the updated version in preparation for a new packaged release --- src/co/proxychecker/ProxyChecker/components/RequestAPI.java | 5 +++-- src/co/proxychecker/ProxyChecker/components/Settings.java | 2 +- .../ProxyChecker/gui/controllers/AboutController.java | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/co/proxychecker/ProxyChecker/components/RequestAPI.java b/src/co/proxychecker/ProxyChecker/components/RequestAPI.java index 3e17d98..c7816d1 100644 --- a/src/co/proxychecker/ProxyChecker/components/RequestAPI.java +++ b/src/co/proxychecker/ProxyChecker/components/RequestAPI.java @@ -83,8 +83,9 @@ public Pair connect(Proxy proxy) { } else { connection = (HttpURLConnection) new URL(this.get_query_url(settings.getIp())).openConnection(proxy); } - connection.setRequestProperty("User-Agent", "Proxy Checker - (proxychecker.co) : " + - System.getProperty("os.name") + " v." + System.getProperty("os.version")); + connection.setRequestProperty("User-Agent", "Proxy Checker v." + Settings.getApplicationVersion() + + " - (proxychecker.co) : " + System.getProperty("os.name") + + " v." + System.getProperty("os.version")); connection.setRequestMethod("GET"); connection.setConnectTimeout(settings.getTimeout()); connection.setReadTimeout(settings.getTimeout()); diff --git a/src/co/proxychecker/ProxyChecker/components/Settings.java b/src/co/proxychecker/ProxyChecker/components/Settings.java index 4896f6b..d62a0d9 100644 --- a/src/co/proxychecker/ProxyChecker/components/Settings.java +++ b/src/co/proxychecker/ProxyChecker/components/Settings.java @@ -11,7 +11,7 @@ */ public class Settings { - private static final String APPLICATION_VERSION = "1.0"; + private static final String APPLICATION_VERSION = "1.1"; private static final String APPLICATION_NAME = "Proxy Checker"; private static final String APPLICATION_URL = "https://proxychecker.co"; private static final String APPLICATION_REPO = "https://github.com/HiddenMotives/ProxyChecker/"; diff --git a/src/co/proxychecker/ProxyChecker/gui/controllers/AboutController.java b/src/co/proxychecker/ProxyChecker/gui/controllers/AboutController.java index 8454a5e..d40e319 100644 --- a/src/co/proxychecker/ProxyChecker/gui/controllers/AboutController.java +++ b/src/co/proxychecker/ProxyChecker/gui/controllers/AboutController.java @@ -28,7 +28,7 @@ public class AboutController implements Initializable { @Override public void initialize(URL location, ResourceBundle resources) { - name.setText(Settings.getApplicationName()); + name.setText(Settings.getApplicationName() + " v." + Settings.getApplicationVersion()); hyperlink.setText(Settings.getApplicationUrl().substring(8)); hyperlink.setOnAction(new EventHandler() { @Override