Skip to content

Conversation

@myleshorton
Copy link
Contributor

@myleshorton myleshorton commented Jan 17, 2026

Closes https://github.com/getlantern/engineering/issues/2814

This pull request introduces a new mechanism for adding private servers based on URLs, streamlining the process across the Go backend and Dart frontend. The main change is the addition of a unified addServerBasedOnURLs method, which now takes a serverName parameter and is exposed through FFI, platform channels, and the application logic. This refactor simplifies server addition, improves code clarity, and enhances maintainability.

Backend (Go) changes:

  • Updated the AddServerBasedOnURLs method in the PrivateServer interface and its implementations to accept a serverName parameter, ensuring the server can be identified by name when added. [1] [2] [3]
  • Added an FFI-exported function addServerBasedOnURLs to expose this functionality to other platforms, handling the new serverName parameter.

Frontend (Dart) changes:

  • Introduced the addServerBasedOnURLs method in LanternCoreService and implemented it in both LanternFFIService and LanternPlatformService, passing through the new parameters. [1] [2] [3] [4]
  • Updated the PrivateServerNotifier and UI logic to use the new addServerBasedOnURLs method, replacing the previous manual server addition flow and simplifying the join process in the UI. [1] [2]

These changes collectively modernize and unify the process of adding private servers by URL, making the codebase easier to maintain and extend.

@jigar-f
Copy link
Contributor

jigar-f commented Jan 20, 2026

@myleshorton is this PR for moving server parsing logic to radiance?

@myleshorton
Copy link
Contributor Author

@myleshorton is this PR for moving server parsing logic to radiance?

It's mostly to add functionality, as pluriconfig supports a much broader set of configurations.

@myleshorton
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants