You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mErr.Errors=append(mErr.Errors, fmt.Errorf("service %q cannot use address_mode=\"alloc\", only services defined in a \"group\" block can use this mode", service.Name))
8314
8314
}
8315
8315
8316
+
ifservice.AddressMode==AddressModeAllocIPv6 {
8317
+
mErr.Errors=append(mErr.Errors, fmt.Errorf("service %q cannot use address_mode=\"alloc_ipv6\", only services defined in a \"group\" block can use this mode", service.Name))
8318
+
}
8319
+
8316
8320
// Ensure that services with the same name are not being registered for
8317
8321
// the same port
8318
8322
if_, ok:=knownServices[service.Name+service.PortLabel]; ok {
mErr.Errors=append(mErr.Errors, fmt.Errorf("check %q cannot use address_mode=\"alloc\", only checks defined in a \"group\" service block can use this mode", service.Name))
8351
8355
}
8352
8356
8357
+
ifcheck.AddressMode==AddressModeAllocIPv6 {
8358
+
mErr.Errors=append(mErr.Errors, fmt.Errorf("check %q cannot use address_mode=\"alloc_ipv6\", only checks defined in a \"group\" service block can use this mode", service.Name))
8359
+
}
8360
+
8353
8361
if!check.RequiresPort() {
8354
8362
// No need to continue validating check if it doesn't need a port
0 commit comments