Skip to content
Snippets Groups Projects
Commit 6596acc2 authored by kaiyou's avatar kaiyou Committed by Cyril Tovena
Browse files

Support using an IPv6 in the Loki push url (#566)

parent bb89b9b5
No related branches found
No related tags found
No related merge requests found
......@@ -90,7 +90,7 @@ module Fluent
use_ssl: uri.scheme == 'https'
}
log.info "sending #{req.body.length} bytes"
res = Net::HTTP.start(uri.host, uri.port, **opts) { |http| http.request(req) }
res = Net::HTTP.start(uri.hostname, uri.port, **opts) { |http| http.request(req) }
unless res && res.is_a?(Net::HTTPSuccess)
res_summary = if res
"#{res.code} #{res.message} #{res.body}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment