-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Agent: Support exporters with loopback host
If an Exporter and the Hub run on the same host and the Exporter connects to the hub via localhost, then the host of the Place is the loopback address for every agent. This prevents agents from connecting if they are on a remote host. Fixed by replacing the host of the Place with the host of the Hub, if the host of the Place is the loopback address. I considered replacing the host in `/api/v1/places` on the Hub, but then clients would get different responses based on their source IP address, which doesn't work well with HTTP caching, if it will ever be used.
- Loading branch information
Showing
1 changed file
with
28 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters