Git Product home page Git Product logo

Comments (4)

jyyi1 avatar jyyi1 commented on August 26, 2024 1

Hi @databasd ,

Thanks for being willing to help! Our dynamic key parsing logic is implemented in TypeScript, and we need to convert it to Golang:

  1. Change ssconf://<my-dynamic-key> to HTTPS URL https://<my-dynamic-key>
  2. Fetch the HTTPS URL, you may use Golang's http package to accomplish that
  3. Process the response:
    3a. If it's a static Outline key (starts with ss://), simple reuse the existing Go implementation for parsing it
    3b. If it's a JSON object ({ "method": "...", "password": "...", "server": "...", "server_port": ..., "prefix": "..." }, where prefix is optional), you may either use json.Unmarshal to parse the object and construct the shadowsocksConfig object, or you may convert the JSON back into a static Outline key (ss://) and jump to step 3a.

Feel free to create a draft pull request to get the discussion started. We can work on the details together.

Please note that, you can start using your implementation even before the review is complete.

from outline-sdk.

jyyi1 avatar jyyi1 commented on August 26, 2024

Hi @databasd , Outline CLI can't use "ssconf://" yet. We do plan to add support for it someday. You may also fork the project and contribute to the corresponding code to support this feature.

from outline-sdk.

databasd avatar databasd commented on August 26, 2024

Hi. I would contribute but where is the reference code for parsing ssconf:// in the gui application ?

from outline-sdk.

pmoieni avatar pmoieni commented on August 26, 2024

Hi @jyyi1 ,
opened a PR for this but I'd like to discuss the issues I'm currently facing

from outline-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.