-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
luci-app-ttyd: interface option is too restrictive #7466
Comments
To be clear, despite ttyd's issue with interfaces/devices, I still think that Luci should add the ability to set IPs as the interface (instead of replacing the dropdown altogether) to be consistent with |
Then that's a ttyd problem, and not a luci problem. What happens when you specify multiple IPs? |
You misunderstood the problem. The problem is that LuCi doesn't allow you to specify IPs to use the workaround for the LuCi is limited to devices and interfaces. It doesn't allow you to specify IP (which is inconsistent with LuCi should allow all values acceptable by |
Another way to phrase it: Both
|
Another way to phrase it: LuCI can't do this: # ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
# NOTICE that this is an IP address, NOT an interface/device:
uci set ttyd.@ttyd[0].interface='192.168.1.1' # used as `ttyd -i <ttyd.@ttyd[0].interface>` by init.d
# ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
uci commit
service ttyd stop
service ttyd start |
Is there an existing issue for this?
screenshots or captures
No response
Actual behaviour
Luci's ttyd app only allows you to specify interfaces and devices for the interface option. This causes problems when the interface has multiple IP addresses. See:
tsl0922/ttyd#1411
Expected behaviour
The -i flag that this option wraps also accepts an IP address, so Luci's ttyd implementation should also allow IPs on top of interfaces and devices
For comparison, the uci command supports setting the IP address directly:
Steps to reproduce
Additional Information
What browsers do you see the problem on?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: