mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Adapt User-Agent string to get rate limit challenges
This commit is contained in:
parent
89d498f87d
commit
e00eaf10e8
1 changed files with 5 additions and 1 deletions
|
@ -5,7 +5,11 @@ public class BaseConfig {
|
||||||
public final static String PROJECT_NAME = BaseConfig.class.getPackage().getImplementationTitle();
|
public final static String PROJECT_NAME = BaseConfig.class.getPackage().getImplementationTitle();
|
||||||
public final static String PROJECT_VERSION = BaseConfig.class.getPackage().getImplementationVersion();
|
public final static String PROJECT_VERSION = BaseConfig.class.getPackage().getImplementationVersion();
|
||||||
|
|
||||||
final static String USER_AGENT = PROJECT_NAME == null ? "signal-cli" : PROJECT_NAME + " " + PROJECT_VERSION;
|
final static String USER_AGENT_SIGNAL_ANDROID = "Signal-Android/5.12.4";
|
||||||
|
final static String USER_AGENT_SIGNAL_CLI = PROJECT_NAME == null
|
||||||
|
? "signal-cli"
|
||||||
|
: PROJECT_NAME + "/" + PROJECT_VERSION;
|
||||||
|
final static String USER_AGENT = USER_AGENT_SIGNAL_ANDROID + " " + USER_AGENT_SIGNAL_CLI;
|
||||||
|
|
||||||
private BaseConfig() {
|
private BaseConfig() {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue