Repository navigation
Network panel: show public IP and country behind VPN/proxy - #20738
Open
DR0P-database wants to merge 2 commits into
Open
DR0P-database wants to merge 2 commits into
DR0P-database wants to merge 2 commits into
Conversation
Contributor
[Medium impact] The changes appear safe to merge; both previous findings are addressed. SummaryAdds public IP and country rows to the Network panel, backed by a helper that checks external services through the configured VPN or proxy.
|
This was referenced Dec 1, 2026
Contributor
|
both of your commits are in #21016. public IP and country are in the details grid, which is still one pair per row on a narrow panel. the route monitor from #20708 was kept in front of that probe. the parser checks in network-test.sh passed here. @dhh @omarchybot if 21016 lands, this can close as superseded. |
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.
Showing the actual public IP and country (with flag and ISO code) lets users verify their active exit IP and location directly from the Network panel.
What changes
Adds Public IP and Country rows (both click-to-copy) below IP Address / Gateway in the Network panel's connection details grid.
Why
When traffic is routed through a VPN, TUN interface (e.g., Xray/WireGuard/Tailscale), or a local proxy app, the existing IP Address field only shows the local/tunnel interface address (such as
172.19.0.1).How
bin/omarchy-network-public-ip, which queries fixed HTTPS endpoints (ifconfig.co,api.ip.sb,ipwho.is,get.geojs.io,api.country.is) with strict timeouts, response size limits, IP/ISO validation, and markup sanitization.HTTPS_PROXY/ALL_PROXY/HTTP_PROXY,systemctl --userenvironment, andorg.gnome.system.proxymanual mode).iso-codes(iso_3166-1) matching the active Omarchy UI language.shell/plugins/panels/network/Panel.qmluntil fresh route details arrive, deduplicates unchanged polls, discards stale in-flight results on route/IP/language change, clears state on close/offline/restricted links, and never polls in the background while closed.default/i18n/en/shell.json.Verification
LC_ALL=C ./test/cli— passedbash test/shell.d/network-test.sh— passed (addedModel.jsparsing/sanitization/formatting tests andomarchy-network-public-ipCLI tests)bash test/shell.d/network-panel-runtime-test.sh— passed (addedpublic-ipQML runtime fixture covering deferred probe, unchanged-route deduplication, mid-flight route switch invalidation, failure handling, and offline reopen)bash test/shell.d/i18n-test.sh— passedbash test/shell.d/panel-open-budgets-test.sh— passed (omarchy.network: 61ms first open, 36ms reopen)Screenshots