mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-04-02 23:38:21 +08:00
Set AGENT_OPENCONNECT for Java/Android clients
These use a slightly different User-Agent string. If they are not detected correctly, then IPv6-only VPNs will not work. Since the Android bindings did not exist until 6.00, the V3 check is unnecessary. Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
This commit is contained in:
committed by
Nikos Mavrogiannopoulos
parent
e6c4d5e492
commit
85fe81d0e0
@@ -282,6 +282,8 @@ void header_value_check(struct worker_st *ws, struct http_req_st *req)
|
||||
req->user_agent_type = AGENT_OPENCONNECT_V3;
|
||||
else
|
||||
req->user_agent_type = AGENT_OPENCONNECT;
|
||||
} else if (strncasecmp(req->user_agent, "OpenConnect VPN Agent", 21) == 0) {
|
||||
req->user_agent_type = AGENT_OPENCONNECT;
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user