Skip to content

Commit

Permalink
default to tcp always
Browse files Browse the repository at this point in the history
  • Loading branch information
powersj committed Jan 2, 2024
1 parent 56c500c commit 13a63c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/outputs/prometheus_client/prometheus_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"context"
"crypto/tls"
_ "embed"
"errors"
"fmt"
"net"
"net/http"
Expand Down Expand Up @@ -221,8 +220,9 @@ func (p *PrometheusClient) listen() (net.Listener, error) {
return p.listenTCP(u.Host)
case "vsock":
return p.listenVsock(u.Host)
default:
return p.listenTCP(u.Host)
}
return nil, errors.New("Unknown scheme")
}

func (p *PrometheusClient) Connect() error {
Expand Down

0 comments on commit 13a63c1

Please sign in to comment.