Skip to content

Commit

Permalink
Reflect changes to show the updated version in preparation for a new …
Browse files Browse the repository at this point in the history
…packaged release
  • Loading branch information
faiqsohail committed Jun 18, 2019
1 parent 5c8dc69 commit 3dab657
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/co/proxychecker/ProxyChecker/components/RequestAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ public Pair<HttpURLConnection, Long> 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());
Expand Down
2 changes: 1 addition & 1 deletion src/co/proxychecker/ProxyChecker/components/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -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/";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<ActionEvent>() {
@Override
Expand Down

0 comments on commit 3dab657

Please sign in to comment.