Skip to content

Fix check_port: gracefully handle missing IPv6 instead of showing unknown status#3018

Merged
xirvik merged 1 commit intoNovik:developfrom
xirvik:fix/check-port-ipv6
Apr 13, 2026
Merged

Fix check_port: gracefully handle missing IPv6 instead of showing unknown status#3018
xirvik merged 1 commit intoNovik:developfrom
xirvik:fix/check-port-ipv6

Conversation

@xirvik
Copy link
Copy Markdown
Collaborator

@xirvik xirvik commented Apr 13, 2026

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.

…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
@xirvik xirvik merged commit e9f846e into Novik:develop Apr 13, 2026
@xirvik xirvik deleted the fix/check-port-ipv6 branch April 13, 2026 07:24
@usr20210909
Copy link
Copy Markdown

IPv6 indicator gets hidden but an error is logged every time ruTorrent is opened in browser:

2026/04/19 20:58:00 [error] 9193#9193: *515747 FastCGI sent in stderr: "PHP message: check_port plugin: https://api64.ipify.org/ returned invalid IP: RE.DA.CT.ED" while reading response header from upstream, client: RE.DA.CT.ED, server: REDACTED.com, request: "POST /rutorrent/plugins/check_port/action.php?init HTTP/1.1", upstream: "fastcgi://unix:/REDACTED/.nginx/php/socket:", host: "REDACTED.com", referrer: "https://REDACTED.com/REDACTED/rutorrent/"

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants