Fix check_port: gracefully handle missing IPv6 instead of showing unknown status#3018
Merged
xirvik merged 1 commit intoNovik:developfrom Apr 13, 2026
Merged
Conversation
…nown status - Return status -1 from backend when protocol IP cannot be determined - Hide icon and text for unavailable protocols instead of showing unknown - Add portNotConfigured lang string for tooltip
|
IPv6 indicator gets hidden but an error is logged every time ruTorrent is opened in browser:
|
xirvik
added a commit
to xirvik/ruTorrent
that referenced
this pull request
Apr 22, 2026
On servers without IPv6, api64.ipify.org returns the IPv4 address which fails IPv6 validation. This logged an error on every page load, spamming both PHP and nginx error logs. The failure is expected and already handled by returning null (status -1 to the UI). Ref: Novik#3018 (comment)
xirvik
added a commit
that referenced
this pull request
Apr 22, 2026
On servers without IPv6, api64.ipify.org returns the IPv4 address which fails IPv6 validation. This logged an error on every page load, spamming both PHP and nginx error logs. The failure is expected and already handled by returning null (status -1 to the UI). Ref: #3018 (comment)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On servers without IPv6, the check_port plugin showed an "unknown" status icon for IPv6, which looked like an error. Now it cleanly hides the IPv6 indicator and shows "Not available on this server" in the tooltip.