File tree Expand file tree Collapse file tree 4 files changed +6
-1
lines changed Expand file tree Collapse file tree 4 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ listen: 0.0.0.0:8080
46
46
listen_pprof : 0.0.0.0:7008
47
47
# Where to send the modified requests (Cortex)
48
48
target : http://127.0.0.1:9091/receive
49
+ # Whether to enable querying for IPv6 records
50
+ enable_ipv6 : false
49
51
50
52
# Authentication
51
53
auth :
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ type config struct {
14
14
Listen string
15
15
ListenPprof string `yaml:"listen_pprof"`
16
16
17
- Target string
17
+ Target string
18
+ EnableIPv6 bool `yaml:"enable_ipv6"`
18
19
19
20
LogLevel string `yaml:"log_level"`
20
21
Timeout time.Duration
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ listen: 0.0.0.0:8080
2
2
listen_pprof : 0.0.0.0:7008
3
3
4
4
target : http://127.0.0.1:9091/receive
5
+ enable_ipv6 : false
5
6
6
7
auth :
7
8
egress :
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ func newProcessor(c config) *processor {
65
65
WriteTimeout : c .Timeout ,
66
66
MaxConnWaitTimeout : 1 * time .Second ,
67
67
MaxConnsPerHost : 64 ,
68
+ DialDualStack : c .EnableIPv6 ,
68
69
}
69
70
70
71
if c .Auth .Egress .Username != "" {
You can’t perform that action at this time.
0 commit comments