-
Notifications
You must be signed in to change notification settings - Fork 4
Description
If Water provides adaptors using the Outline SDK abstractions (Stream/Packet Dialer/Endpoint), then all the apps in the Outline ecosystem (including VPNs and media apps) can more easily adopt WATER, increase the reach of your technology. The code doesn't have to live in our SDK, it can be in your own repo, under your ownership.
Mobile Proxy
You can go one step further and provide a registration function for our Mobile Proxy.
As an example, this is the line that registers the Psiphon dialer in the MobileProxy: https://github.com/Jigsaw-Code/outline-sdk/blob/3402c412f35460bfa2e254e0fb1970f7fd76b24c/x/mobileproxy/psiphon/registration.go#L69
Steps:
- Define a config format
- Write a parser that returns a transport.StreamDialer
- Write a registration function that can be exported by Go Mobile that developers can call to add Amnezia to their apps
This little example app runs the mobile proxy as a cli. Good tool to use for testing. It also illustrates the registration of a dummy "error" strategy, that always fails to dial.