Skip to content

Commit

Permalink
fix(outputs.prometheus_client): Default empty scheme to TCP
Browse files Browse the repository at this point in the history
  • Loading branch information
powersj committed Dec 18, 2023
1 parent d8b2470 commit cab60e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/outputs/prometheus_client/prometheus_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func (p *PrometheusClient) listen() (net.Listener, error) {
return p.listenTCP(p.Listen)
}
switch strings.ToLower(u.Scheme) {
case "tcp", "http":
case "", "tcp", "http":
return p.listenTCP(u.Host)
case "vsock":
return p.listenVsock(u.Host)
Expand Down

0 comments on commit cab60e4

Please sign in to comment.