Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Sep 23, 2024
1 parent ad45438 commit 295369b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server/influxdb.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package server

import (
"crypto/tls"
"fmt"
"reflect"
"strconv"
Expand Down Expand Up @@ -37,9 +38,7 @@ func NewInfluxClient(url, token, org, user, password, database string, insecure

options := influxdb2.DefaultOptions()

tlsConfig := options.TLSConfig()
tlsConfig.InsecureSkipVerify = insecure
options.SetTLSConfig(tlsConfig)
options.SetTLSConfig(&tls.Config{InsecureSkipVerify: insecure})
options.SetPrecision(time.Second)

client := influxdb2.NewClientWithOptions(url, token, options)
Expand Down

0 comments on commit 295369b

Please sign in to comment.