Commit b4ad3a67 authored by Daniel Lenski's avatar Daniel Lenski Committed by David Woodhouse

allow overriding User-Agent in Java library

Juniper servers do extra stupid things when "Java" appears in the UA string
Signed-off-by: default avatarDaniel Lenski <>
Signed-off-by: default avatarDavid Woodhouse <>
parent 31b5c4ad
......@@ -77,6 +77,10 @@ public abstract class LibOpenConnect {
libctx = init("OpenConnect VPN Agent (Java)");
public LibOpenConnect(String userAgent) {
libctx = init(userAgent);
public synchronized void destroy() {
if (libctx != 0) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment