From 91321bdf682eb5b512373bb56c722f943cbc8183 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 24 Jul 2021 12:09:12 -0400 Subject: webcpanel: fix command source ip to use extforward ip --- modules/webcpanel/webcpanel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/webcpanel/webcpanel.cpp b/modules/webcpanel/webcpanel.cpp index 16b61e673..f95307f22 100644 --- a/modules/webcpanel/webcpanel.cpp +++ b/modules/webcpanel/webcpanel.cpp @@ -268,7 +268,7 @@ namespace WebPanel my_reply(r, key); CommandSource source(user, NULL, nc, &my_reply, bi); - source.ip = client->clientaddr.addr(); + source.ip = client->GetIP(); CommandInfo info; info.name = c; @@ -308,7 +308,7 @@ namespace WebPanel my_reply(r, key); CommandSource source(nc->display, NULL, nc, &my_reply, bi); - source.ip = client->clientaddr.addr(); + source.ip = client->GetIP(); cmd->Run(source, cmdname, *info, params); } -- cgit