Comments (4)
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.
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.
Okay i will take a look into it, but can't say how fast i can/will implement this :)
from kiauh.
I was working on a function like bespoken.
This is what i came up with:
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:
from kiauh.
Related Issues (20)
- KIAUH asks for a sudo password even if sudo does not require a password. HOT 15
- KIAUH clears the scrollback buffer every time you use a menu option.
- BUG: Octoeverywhere You are not currently on a branch HOT 1
- Support gitlab repos in klipper_repos
- Incorrect root path in /etc/nginx/sites-available/mainsail
- Mainsail Installation Fails HOT 1
- MultiDistribution support HOT 4
- OctoEverywhere fails to update/install HOT 2
- rework rpi os recommendation in readme HOT 5
- Broken envs after distro upgrades HOT 3
- KIAUH Installation of Crowsnest failing on Bookworm HOT 2
- Feature: Allow Gcode_Shell_Command to Return a value to the calling process
- Mainsail fails after last (v0.12) system update. No icons in config files(Hardware), and not visible Mainsail version. HOT 1
- Support for Octoapp HOT 2
- RPI host MCU install for ADXL345 HOT 1
- RPC failed; HOT 3
- Unattentended / noninteractive examples? HOT 2
- could not build wheels for pillow HOT 1
- Bad substitution -> Syntax error HOT 13
- Uninstall gcode shell command via KIAUH HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kiauh.