[PATCH V2 ocserv] Set AGENT_OPENCONNECT for Java/Android clients

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you. Committed in upstream master and 0.11.x branch.

On Mon, Jan 29, 2018 at 8:14 AM, Kevin Cernekee <cernekee at gmail.com> wrote:
> 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 at 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..dc7733c 100644
> --- a/src/worker-http.c
> +++ b/src/worker-http.c
> @@ -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;
>
> --
> 2.7.4
>



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux