Ensure transport matches for monitoring service
This commit is contained in:
		| @@ -47,6 +47,10 @@ func (m *monitor) check(service string) (*Status, error) { | |||||||
| 			if node.Metadata["server"] != m.client.String() { | 			if node.Metadata["server"] != m.client.String() { | ||||||
| 				continue | 				continue | ||||||
| 			} | 			} | ||||||
|  | 			// check the transport matches | ||||||
|  | 			if node.Metadata["transport"] != m.client.Options().Transport.String() { | ||||||
|  | 				continue | ||||||
|  | 			} | ||||||
|  |  | ||||||
| 			rsp, err := debug.Health( | 			rsp, err := debug.Health( | ||||||
| 				context.Background(), | 				context.Background(), | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user