Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GlobalProtect: always set clientos=Windows in relevant requests, rega…
…rdless of actual OS I've tried, whenever possible not to lie to the server about the client configuration. However, there are now multiple cases where a GlobalProtect server responds with a misleading error when the `ssl-vpn/login.esp` request doesn't contain the exact, magic value of `clientos=Windows`. * dlenski#86 ("Assign private IP address failed" unless `clientos=Windows` in `ssl-vpn/login.esp` request) * dlenski#116 ("Invalid username or password" unless `clientos=Windows` in `ssl-vpn/login.esp` request) These cases are very difficult to debug because they seem to be suggesting totally unrelated errors. For reliability, this patch makes openconnect always specify `clientos=Windows` in relevant requests, regardless of the actual `vpninfo->platname`. (The `vpninfo->platname` value can still be sent in the "free-form" `os-version` field, as far as I can tell.) Signed-off-by: Daniel Lenski <[email protected]>
- Loading branch information