mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Add version to user agent string
This commit is contained in:
parent
7f21bf0f23
commit
ab25003061
1 changed files with 3 additions and 1 deletions
|
@ -51,7 +51,9 @@ class Manager {
|
|||
private final static String URL = "https://textsecure-service.whispersystems.org";
|
||||
private final static TrustStore TRUST_STORE = new WhisperTrustStore();
|
||||
|
||||
private final static String USER_AGENT = "textsecure-cli";
|
||||
public final static String PROJECT_NAME = Manager.class.getPackage().getImplementationTitle();
|
||||
public final static String PROJECT_VERSION = Manager.class.getPackage().getImplementationVersion();
|
||||
private final static String USER_AGENT = PROJECT_NAME + " " + PROJECT_VERSION;
|
||||
|
||||
private final static String settingsPath = System.getProperty("user.home") + "/.config/textsecure";
|
||||
private final static String dataPath = settingsPath + "/data";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue