|
|
|
@ -526,6 +526,7 @@ func (l *localState) syncService(id string) error {
|
|
|
|
|
Datacenter: l.config.Datacenter, |
|
|
|
|
Node: l.config.NodeName, |
|
|
|
|
Address: l.config.AdvertiseAddr, |
|
|
|
|
WanAddress: l.config.ConsulConfig.SerfWANConfig.MemberlistConfig.AdvertiseAddr, |
|
|
|
|
Service: l.services[id], |
|
|
|
|
WriteRequest: structs.WriteRequest{Token: l.serviceToken(id)}, |
|
|
|
|
} |
|
|
|
@ -583,6 +584,7 @@ func (l *localState) syncCheck(id string) error {
|
|
|
|
|
Datacenter: l.config.Datacenter, |
|
|
|
|
Node: l.config.NodeName, |
|
|
|
|
Address: l.config.AdvertiseAddr, |
|
|
|
|
WanAddress: l.config.ConsulConfig.SerfWANConfig.MemberlistConfig.AdvertiseAddr, |
|
|
|
|
Service: service, |
|
|
|
|
Check: l.checks[id], |
|
|
|
|
WriteRequest: structs.WriteRequest{Token: l.checkToken(id)}, |
|
|
|
|