Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
allow overriding User-Agent in Java library
Juniper servers do extra stupid things when "Java" appears in the UA string

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
dlenski authored and dwmw2 committed Aug 15, 2018
1 parent 31b5c4a commit b4ad3a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions java/src/org/infradead/libopenconnect/LibOpenConnect.java
Expand Up @@ -77,6 +77,10 @@ public LibOpenConnect() {
libctx = init("OpenConnect VPN Agent (Java)");
}

public LibOpenConnect(String userAgent) {
libctx = init(userAgent);
}

public synchronized void destroy() {
if (libctx != 0) {
free();
Expand Down

0 comments on commit b4ad3a6

Please sign in to comment.