From 28d4f8730145cc6e100e89ef04bf1c9dced9d00e Mon Sep 17 00:00:00 2001 From: 1-am-r00t <23195315+1-am-r00t@users.noreply.github.com> Date: Sun, 20 Oct 2024 21:59:02 +0200 Subject: [PATCH] Fix: HTTP power meter custom port (#1333) --- src/HttpGetter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HttpGetter.cpp b/src/HttpGetter.cpp index 664c35dd6..c7eed5564 100644 --- a/src/HttpGetter.cpp +++ b/src/HttpGetter.cpp @@ -61,8 +61,8 @@ bool HttpGetter::init() // get port index = _host.indexOf(':'); if (index >= 0) { - _host = _host.substring(0, index); // up until colon _port = _host.substring(index + 1).toInt(); // after colon + _host = _host.substring(0, index); // up until colon } if (_useHttps) {