Skip to content

Commit

Permalink
Fix: HTTP power meter custom port (#1333)
Browse files Browse the repository at this point in the history
  • Loading branch information
1-am-r00t authored Oct 20, 2024
1 parent 844d920 commit 28d4f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HttpGetter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 28d4f87

Please sign in to comment.