Skip to content
Snippets Groups Projects
Commit 3a2e50d0 authored by chrissi^'s avatar chrissi^
Browse files

gluon-status-page: Fix redirect to actual IPv4 addr

Finding the actual IPv4 address of the node relied on "-br" of ip.
Since Gluon v2022 we must live with busybox ip...
This change works around this change...
parent 8c362e3b
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@ entry({}, call(function(http, renderer)
if match(node_ip, parse_ip(site.next_node.ip4()), 4) then
-- The user has visited the status page via the ipv4 next-node address
-- Redirect the user to our unique ipv4 address to avoid switching nodes
local process = io.popen('ip -br -4 address show br-client', 'r')
local process = io.popen('ip -4 a show dev br-client','r')
if process then
local output = process:read('*a')
process:close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment