| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2023-09-25 | Exports: Implement newest API using cookie handlers | jwijenbergh | |
| BREAKING CHANGES: - The following functions need a special "cookie" as the first argument - Add server (also now has an extra int as last argument, if non 0 run no callbacks, useful for preprovisioned servers) - Get config - Set secure location - Disco servers - Disco organizations - Cleanup - Renew session - Start failover Removed functions: - "CancelOAuth", "CancelFailover" replaced by "CookieCancel" - SecureLocationList, removed because the secure internet server from ServerList() now has the locations embedded in the JSON A cookie is a specialized context that can be used for cancellation and sending values across a channel. Cancel OAuth and Cancel failover functions have thus been removed. Instead, create a cookie with "CookieNew", pass it to the function as the first argument and when you want to cancel, run "CookieCancel". The functions mentioned above use network requests, or some other long running procedure. Even though we have a timeout set to 10 seconds for failover and network requests, it might make sense to make this longer and just have clients cancel the request. Cookies that have been created with "CookieNew" must be freed with CookieDelete, which cancels the cookie and then deletes the underlying handle. Because cookies have a channel associated with them, they are used for replying to state callbacks. When you receive an ASK_PROFILE or ASK_LOCATION request, you get the same cookie back that you have created when passed to the function (key "cookie" in the state data). Reply with your answer (the profile or location) with "CookieReply" passing in the cookie as first argument and the data as second. This means that SetProfileID and SetSecureLocation should now only be used when not in a state callback. E.g. just changing the profile or location when triggered by the user. Finally, when a cookie is canceled, the error that is returned by the function inherits from the Go context cancellation error: https://pkg.go.dev/context#pkg-variables ("context canceled") | |||
| 2023-09-25 | Exports + Client: Refactor registering a client | jwijenbergh | |
| - Make sure the global exports state is only set on successful creating - Only call discovery when adding a server to ensure we get the most up to date args. Creating a client should have no network calls. Fixes #12 - Split creating a client in New and Register in the GO api | |||
| 2023-09-25 | Exports + Client Register: Make sure to only update state if no err | jwijenbergh | |
| 2023-09-25 | Exports: Return nil on nil error | jwijenbergh | |
| Co-authored-by: rozmansi <simon@rozman.si> | |||
| 2023-09-25 | Exports + Python: Compare booleans with != 0 instead of == 1 | jwijenbergh | |
| Reported by: Simon Rozman <simon@rozman.si> | |||
| 2023-09-25 | Exports + Python + Server: Remove ShouldRenewButton | jwijenbergh | |
| This is replace with expiry times | |||
| 2023-09-25 | Tests: Pass for V2 API | jwijenbergh | |
| 2023-09-25 | Exports + Python: Use an enum for server type | jwijenbergh | |
| 2023-09-25 | Types: Split server into subpackage | jwijenbergh | |
| 2023-09-25 | Exports: Implement initial V2 API | jwijenbergh | |
| The main change is that we now use JSON from types listed at the `types` package | |||
| 2023-09-25 | Exports: Remove server.h | jwijenbergh | |
| 2023-09-01 | Version: Update to 1.1.21.1.2 | jwijenbergh | |
| 2023-08-29 | Version: Update to 1.1.11.1.1 | jwijenbergh | |
| 2023-04-18 | Version: Update to 1.1.01.1.0 | jwijenbergh | |
| 2023-04-18 | Exports Disco: Safeguard against nil servers/organizations | jwijenbergh | |
| 2023-04-18 | Exports: Do not crash on invalid wrapped errors | jwijenbergh | |
| 2023-04-18 | Client + Server: Implement a token updater callback | jwijenbergh | |
| 2023-03-01 | Version: Update to 1.0.0 | jwijenbergh | |
| 2023-03-01 | Version: Downgrade to 0.99.0 | jwijenbergh | |
| 2023-03-01 | Client + Exports + HTTP: Set a user-agent using the client's version | jwijenbergh | |
| 2023-02-28 | Version: Prepare 1.0.0 | jwijenbergh | |
| 2023-02-28 | Refactor: Remove error level | jwijenbergh | |
| Not useful enought just yet | |||
| 2023-02-27 | Exports Disco + Python: Make sure we can always obtain the local cache | jwijenbergh | |
| 2023-02-01 | Version: Bump to 0.3.0 | jwijenbergh | |
| 2023-01-13 | Client + Exports: Separate cleanup from disconnect | jwijenbergh | |
| 2023-01-03 | Format: Run gofumpt | jwijenbergh | |
| 2023-01-02 | Exports: Use unsafe.Slice for C slice conversion | jwijenbergh | |
| This is possible now as we require Go 1.17 | |||
| 2022-12-21 | Version: Bump to 0.2.0 | jwijenbergh | |
| 2022-12-21 | Client + Exports: Forward tokens for /disconnect | jwijenbergh | |
| 2022-12-21 | Exports + OAuth + Server: Forward tokens to getting a config | jwijenbergh | |
| 2022-12-21 | Failover: Initial implementation | jwijenbergh | |
| 2022-12-12 | Format: Run gofumpt | jwijenbergh | |
| 2022-12-12 | Server + Exports: Rename and simplify GetCurrentProfileIndex | jwijenbergh | |
| 2022-12-12 | simplify error handling | Aleksandar Pesic | |
| fixes #6 Signed-off-by: Aleksandar Pesic <peske.nis@gmail.com> | |||
| 2022-11-28 | Linter: Fix dupword errors | jwijenbergh | |
| 2022-11-28 | Formatting: Run golines | jwijenbergh | |
| 2022-11-28 | Formatting: Run gofumpt -w | jwijenbergh | |
| 2022-11-28 | Refactor: Fix revive linter errors by deleting redundant prefixes | jwijenbergh | |
| 2022-11-28 | Refactor: Remove most get prefixes for receiver functions | jwijenbergh | |
| 2022-11-28 | Document: Add comments for most functions and packages | jwijenbergh | |
| Errors and test files still need to be done. Also some getters are changed by removing the 'get' prefix | |||
| 2022-11-25 | Discovery + Exports: Rename variable to not clash with server pkg | jwijenbergh | |
| 2022-11-24 | Style: Use stylecheck and fix errors | jwijenbergh | |
| 2022-11-23 | FSM: Check unhandled transitions | jwijenbergh | |
| 2022-11-10 | Exports + Python: Return locations for a secure internet server | jwijenbergh | |
| 2022-10-26 | Client + Exports + Python: Add a function for getting the current server | jwijenbergh | |
| 2022-10-24 | Client + Server + Exports: Implement optional WireGuard support | jwijenbergh | |
| 2022-10-18 | Client: Move to its own package | jwijenbergh | |
| 2022-10-13 | Format: Run gofumpt | jwijenbergh | |
| 2022-10-11 | Client: Refactor out adding a Server from getting a config | jwijenbergh | |
| 2022-10-06 | Client + Python: Pass language to Register | jwijenbergh | |
