-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Display External IP Address in status bar #21383
base: master
Are you sure you want to change the base?
Conversation
bd63c3d
to
24aa88a
Compare
Past comments: #20118 (comment) ("External Address" to "IP" or "External IP"), #20118 (comment) ("Detecting" to "N/A"), #20118 (comment) (Disable the default display). |
I went through all of the past comments and chose not to act on these. More info below.
I don't feel super strongly about this, but "Address" seems appropriate to use here.
"Detecting" is more accurate than "N/A", given that a) we're waiting to resolve the IP and b) "N/A" means "not applicable" (this doesn't really apply here). I also disagree with the notion that "Detecting" takes up too much space, as seen in the GUI screenshot above on a low resolution display.
I'm not opposed to adding an option for this, though I'd push for enabling this feature by default.
Agree that these can be added later if people desire. |
IMO, it can be perceived as some kind of active action of qBittorrent, but it is not. Moreover, it will never detect the external address without having active torrents.
This statement is speculative. "N/A" can also mean other things, e.g. "not available" which is used in this case. |
If you didn't figure it out, it was those comments that were the problem. |
There were many comments, almost all of which I addressed. These remaining comments seem minor. And if I'm being totally honest, I think it was your tone and manor of interacting with the author that lead to them abandoning the PR. You can come across as very terse.
That's not what it means though. |
In the log there are strings
👍
A working DHT is sufficient for detection. |
|
I'm not sure that DHT is queried for anything when there are no running torrents. However, it doesn't matter. I just wanted to emphasize that "external address" is information that is obtained as a side effect, and not as a result of active actions. |
#21296 (comment) In the screenshots you can see that if DHT is working, the external address will be detected (without active torrents). |
That's not the usage I think of when I hear "N/A", but that's just my bias. I'll switch from "External Address" to "External IP" and from "Detecting" to "N/A". |
45ceb14
to
bbf5400
Compare
Any other opinions? Even if you leave the default display, there should be a checkbox in the options to disable the display. |
I am questing the usefulness of this. Why isn't the log entry sufficient? |
IMHO, if it's optional (via preferences) then I see no harm in it. There are many requests for this functionality IIRC. |
Another question: Is this mostly useful to WebUI users? Or do GUI users stand to benefit from it too? |
E.g. my ISP sometimes drops my static IP, effectively blocking the transfers. And it's not always obvious at the first glance if there is simply no activity or something is broken, it requires reading the log.
I don't see how UI choice matters here. It serves the same purpose for both. |
Wait. I think I am missing something. If the ISP drops the static IP don't you get assigned another IP? Then why doesn't qbt/libtorrent continue transfers? In any case, if I am the only member who thinks that it clutter the UI, then disregard me. I will not insist. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
It seems folks are currently in agreement that there should be a way to disable this. Is that right? Anything else missing? |
Yes. Even without clutter take, hiding it should be possible for privacy reasons.
|
Works fine. |
Are there any other blockers on this PR? |
3ffae1c
to
437acd7
Compare
@Chocobo1 Do you have any other comments? I would test again. |
This could be a privacy & security nightmare if it's on by default. While cool to have, I think it should never be enabled by default! |
TBH, that is already a preexisting privacy nightmare. |
Yes, but having your IP address shown anywhere in the graphical interface will make the nightmare even worse. AFAIK at the moment no other program shows the current IP address in its graphical interface. Now that I'm thinking more about it, not only the Windows user that has Recall installed will have its privacy tarnished, but also the ones that appear in the Peers list. So in my opinion, it would be best for the privacy of everyone if the IP addresses are not displayed by default both in the status bar and in the Peers tab for people that have Recall installed. |
That's kinda long and complicated way to ask for it to be disabled by default. I also think it should not be enabled by default. Not even only for privacy reasons, but simply because most users won't need it. |
a1cf921
to
4d3fdff
Compare
All comments addressed. Folks seem to feel strongly that this should be disabled by default. No one has expressed a strong opinion that this should be enabled by default, so I've made that change too. |
At startup the IP is displayed, but the checkbox is disabled. If you go to the options and change any other setting and apply it, the IP disappears. At the next startup everything repeats. |
Yeah, we forgot about the initial widget state. |
This change displays the last detected IPv4 and/or IPv6 address(es) in the GUI and WebUI's status bar. This does not yet handle systems with multiple addresses of the same type (e.g. multiple IPv6 addresses).
4d3fdff
to
a956d68
Compare
Good catch. Just put up a fix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested 👍
This change displays the last detected IPv4 and/or IPv6 address(es) in the GUI and WebUI's status bar. This does not yet handle systems with multiple addresses of the same type (e.g. multiple IPv6 addresses).
This is a continuation of #20118, which has been closed. I've reused most of the code (with minor changes) but removed the ability to directly open the Execution Log by clicking on the address label.
GUI (resolution 1280x800):
WebUI: