diff --git a/src/components/proxy/ProxyPanel.tsx b/src/components/proxy/ProxyPanel.tsx index c227a1230..6166271af 100644 --- a/src/components/proxy/ProxyPanel.tsx +++ b/src/components/proxy/ProxyPanel.tsx @@ -144,6 +144,8 @@ export function ProxyPanel({ return false; } }; + const normalizedAddress = + addressTrimmed === "localhost" ? "127.0.0.1" : addressTrimmed; const isValidAddress = addressTrimmed === "localhost" || addressTrimmed === "0.0.0.0" || @@ -181,7 +183,7 @@ export function ProxyPanel({ try { await updateGlobalConfig.mutateAsync({ ...globalConfig, - listenAddress: addressTrimmed, + listenAddress: normalizedAddress, listenPort: port, }); toast.success(