Skip to content

Commit 40527f6

Browse files
committed
feat: change v2 default port to 8086
1 parent 309f8a0 commit 40527f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/InfluxDb.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
*/
3535
Influxdb::Influxdb(String host, uint16_t port) {
3636
if(port == 443) {
37-
// this happens usualy when influxdb is behind fw/proxy. Mostly, when influxdb is switched to https, the port remains the same (8086/9999)
37+
// this happens usualy when influxdb is behind fw/proxy. Mostly, when influxdb is switched to https, the port remains the same (8086)
3838
// port number shouldn't be qualificator for secure connection, either scheme or a flag
3939
_serverUrl = "https://";
4040
} else {
@@ -71,7 +71,7 @@ void Influxdb::setBucket(String bucket) {
7171

7272
/**
7373
* Set the influxDB port.
74-
* @param port v1.x uses 8086, v2 uses 9999
74+
* @param port both v1.x and v3 use 8086
7575
*/
7676
void Influxdb::setPort(uint16_t port){
7777
int b = _serverUrl.indexOf(":",5);

0 commit comments

Comments
 (0)