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 <cerne...@gmail.com>
---
 src/worker-http.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/worker-http.c b/src/worker-http.c
index 0f93d40..112f13d 100644
--- a/src/worker-http.c
+++ b/src/worker-http.c
@@ -283,6 +283,8 @@ void header_value_check(struct worker_st *ws, struct 
http_req_st *req)
                        else
                                req->user_agent_type = AGENT_OPENCONNECT;
                }
+               if (strncasecmp(req->user_agent, "OpenConnect VPN Agent", 21) 
== 0)
+                       req->user_agent_type = AGENT_OPENCONNECT;
                break;
 
        case HEADER_DTLS_CIPHERSUITE:
-- 
2.7.4


_______________________________________________
openconnect-devel mailing list
openconnect-devel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/openconnect-devel

Reply via email to