Fix: HTTP power meter custom port (#1333)
This commit is contained in:
parent
844d92008b
commit
28d4f87301
@ -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) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user