Fix: HTTP power meter custom port (#1333)

This commit is contained in:
1-am-r00t 2024-10-20 21:59:02 +02:00 committed by GitHub
parent 844d92008b
commit 28d4f87301
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,8 +61,8 @@ bool HttpGetter::init()
// get port // get port
index = _host.indexOf(':'); index = _host.indexOf(':');
if (index >= 0) { if (index >= 0) {
_host = _host.substring(0, index); // up until colon
_port = _host.substring(index + 1).toInt(); // after colon _port = _host.substring(index + 1).toInt(); // after colon
_host = _host.substring(0, index); // up until colon
} }
if (_useHttps) { if (_useHttps) {