Git Product home page Git Product logo

Comments (4)

dw-0 avatar dw-0 commented on May 30, 2024

Im not quite sure if i can or will pay attention to every single edge case regarding possible configurations.

I think the best solution might be, to give the user a choice.
Option 1: Write a default config entry with the currently included trusted clients.
Option 2: Read user input where user can define the trusted client himself, which then gets written to the config file.
Option 3(maybe?): A mix of option 1 and option 2. Default IPs are written anyways, but the user gets the choice to add more himself?

What do you think?

from kiauh.

vladbabii avatar vladbabii commented on May 30, 2024

User choice is a good option! I think having an option for user to fill in ip and range would be best. The value could be prefilled based on the network information, search for "192.168.0." or "192.168.1." or "10.0.0." in the network interfaces list and prefill one of the values...

from kiauh.

dw-0 avatar dw-0 commented on May 30, 2024

Okay i will take a look into it, but can't say how fast i can/will implement this :)

from kiauh.

dw-0 avatar dw-0 commented on May 30, 2024

I was working on a function like bespoken.
This is what i came up with:
Bild 20-08-26_10-19-25_putx2k48.png auf abload.de
Be aware that my IP there is just an example, it will get written exactly that way to the config. But this will throw an error of course. You are not allowed to put in a "666" at the end :D

I think this will be a good way?
Additionally, the current IP of the Pi will be written to the config no matter, or rather the IP gets converted to an IP range:
Bild 20-08-26_10-22-57_putpxkqh.png auf abload.de

from kiauh.

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.