open-consul/command/agent
Frank Schroeder 3e4dc6e133 agent: use bind address as src unless INADDR_ANY
Use the bind address as source address for outgoing
RPC connections unless it is INADDR_ANY.

The current code uses the advertise address which will
not work in certain environments where the advertise
address is not routable in the network of the agent,
e.g. NAT environment, container... After all, that is
the purpose of the advertise address.

See #2822
2017-05-11 00:34:14 +02:00
..
acl.go golint: Untangle if blocks with return in else 2017-04-25 09:26:13 -07:00
acl_endpoint.go Use fmt.Fprint/Fprintf/Fprintln 2017-04-20 09:02:59 -07:00
acl_endpoint_test.go test: drop error check on http.NewRequest 2017-05-10 17:42:38 +02:00
acl_test.go test: add helper for permission denied check 2017-05-10 17:42:38 +02:00
agent.go agent: use bind address as src unless INADDR_ANY 2017-05-11 00:34:14 +02:00
agent_endpoint.go agent: Disallow :: and [::] as service address 2017-05-09 17:56:15 +02:00
agent_endpoint_test.go test: refactor TestAgent_Leave_ACLDeny to use only one server 2017-05-10 17:42:38 +02:00
agent_test.go test: Turns down server health interval for faster convergence. 2017-05-05 17:07:02 +02:00
bindata_assetfs.go Updates built-in static assets for web UI. 2017-05-08 19:50:54 -07:00
catalog_endpoint.go api: Return empty list instead of nil 2017-04-28 15:00:08 -07:00
catalog_endpoint_test.go test: inline request body encoding 2017-05-10 17:42:38 +02:00
check.go golint: Fix existing comments 2017-04-25 09:26:13 -07:00
check_test.go retry: Removes the description parameter. 2017-05-05 17:07:03 +02:00
command.go agent: use helper for INADDR_ANY 2017-05-11 00:34:14 +02:00
command_test.go agent: drop atlas/scada code 2017-05-10 23:06:36 +02:00
config.go agent: use helper for INADDR_ANY 2017-05-11 00:34:14 +02:00
config_aws.go Move AWS discovery code to command/agent/config_aws.go 2017-05-04 01:41:47 +02:00
config_gce.go Move GCE discovery code to command/agent/config_gce.go 2017-05-04 01:41:47 +02:00
config_test.go agent: drop atlas/scada code 2017-05-10 23:06:36 +02:00
coordinate_endpoint.go golint: Drop the unused value from range 2017-04-25 09:26:13 -07:00
coordinate_endpoint_test.go test: drop error check on http.NewRequest 2017-05-10 17:42:38 +02:00
dns.go Merge pull request #2690 from zeroae/f-simple-rfc2782 2017-03-02 14:49:36 -08:00
dns_test.go Tweaks some tests that were having a hard time in Travis CI and 2017-05-09 06:48:26 -07:00
event_endpoint.go Use fmt.Fprint/Fprintf/Fprintln 2017-04-20 09:02:59 -07:00
event_endpoint_test.go test: replace blocks and comments with sub-tests 2017-05-10 17:42:38 +02:00
flag_slice_value.go Working on the agent 2013-12-20 16:39:32 -08:00
flag_slice_value_test.go Revert "test: Run command/agent tests in parallel" 2017-04-27 14:39:04 -07:00
health_endpoint.go api: Return empty list instead of nil 2017-04-28 15:00:08 -07:00
health_endpoint_test.go test: drop error check on http.NewRequest 2017-05-10 17:42:38 +02:00
http.go agent: drop atlas/scada code 2017-05-10 23:06:36 +02:00
http_api.md Add /v1/agent/self and return local agent config 2014-05-27 01:15:33 +02:00
http_test.go agent: drop atlas/scada code 2017-05-10 23:06:36 +02:00
keyring.go Added -relay-factor param to keyring operations 2017-02-01 21:53:29 -05:00
keyring_test.go Revert "test: Run command/agent tests in parallel" 2017-04-27 14:39:04 -07:00
kvs_endpoint.go golint: Untangle if blocks with return in else 2017-04-25 09:26:13 -07:00
kvs_endpoint_test.go test: drop error check on http.NewRequest 2017-05-10 17:42:38 +02:00
local.go golint: Drop the unused value from range 2017-04-25 09:26:13 -07:00
local_test.go test: Fix badly formatted retry.Run tests 2017-05-05 17:07:03 +02:00
operator_endpoint.go golint: Untangle if blocks with return in else 2017-04-25 09:26:13 -07:00
operator_endpoint_test.go test: drop error check on http.NewRequest 2017-05-10 17:42:38 +02:00
prepared_query_endpoint.go golint: Untangle if blocks with return in else 2017-04-25 09:26:13 -07:00
prepared_query_endpoint_test.go test: drop error check on http.NewRequest 2017-05-10 17:42:38 +02:00
remote_exec.go Remove duplicate constants 2017-04-20 09:54:49 -07:00
remote_exec_test.go Revert "test: Run command/agent tests in parallel" 2017-04-27 14:39:04 -07:00
session_endpoint.go golint: Drop the unused value from range 2017-04-25 09:26:13 -07:00
session_endpoint_test.go test: drop error check on http.NewRequest 2017-05-10 17:42:38 +02:00
snapshot_endpoint.go Adds support for snapshots and restores. (#2396) 2016-10-25 19:20:24 -07:00
snapshot_endpoint_test.go test: drop error check on http.NewRequest 2017-05-10 17:42:38 +02:00
status_endpoint.go More HTTP endpoints 2013-12-23 16:20:51 -08:00
status_endpoint_test.go Revert "test: Run command/agent tests in parallel" 2017-04-27 14:39:04 -07:00
structs.go Remove duplicate constants 2017-04-20 09:54:49 -07:00
structs_test.go Revert "test: Run command/agent tests in parallel" 2017-04-27 14:39:04 -07:00
translate_addr.go Factors translate out into a separate file and makes safe for in-memory RPCs. 2016-08-15 15:05:02 -07:00
txn_endpoint.go golint: Untangle if blocks with return in else 2017-04-25 09:26:13 -07:00
txn_endpoint_test.go test: drop error check on http.NewRequest 2017-05-10 17:42:38 +02:00
ui_endpoint.go Remove duplicate constants 2017-04-20 09:54:49 -07:00
ui_endpoint_test.go test: drop error check on http.NewRequest 2017-05-10 17:42:38 +02:00
user_event.go Changes disable_remote_exec default to true so remote exec is opt-in. 2017-03-30 09:43:32 -07:00
user_event_test.go retry: Removes the description parameter. 2017-05-05 17:07:03 +02:00
util.go Remove the RPC client interface and update docs 2017-02-28 13:41:09 -08:00
util_test.go Revert "test: Run command/agent tests in parallel" 2017-04-27 14:39:04 -07:00
watch_handler.go agent: Stop reaping child processes (resolves #1988) 2016-10-04 09:36:41 -06:00
watch_handler_test.go Revert "test: Run command/agent tests in parallel" 2017-04-27 14:39:04 -07:00