Anthony Romano
780a7d359c
discovery: remove dead token argument from SRVGetCluster
...
Can add the argument back when it's actually used something.
2017-04-12 16:49:44 -07:00
Gyu-Ho Lee
60bdc47fa0
discovery: fix print format
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-03-10 15:04:46 -08:00
Anthony Romano
74ae67b835
discovery: warn on scheme mismatch
2016-11-18 13:12:14 -08:00
Anthony Romano
3dc12e33f1
discovery: reject IP address records in SRVGetCluster
...
Was incorrectly trimming the trailing '.' from the target; this in turn
caused the etcd server to accept any SRV record with an IP target
instead of only targets with A records.
2016-08-23 18:10:42 -07:00
davygeek
ea0eab84a4
discovery: Uniform code style
2016-06-30 22:00:01 +08:00
Gyu-Ho Lee
ef44f71da9
*: update LICENSE header
2016-05-12 20:51:48 -07:00
Anthony Romano
c5b51946eb
*: exported godoc fixups
2016-02-21 20:36:44 -08:00
Raoof Mohammed
9a2809f0b5
discovery: log error only if both ssl and non-ssl srv lookups fail
...
discovery: log error only if both ssl and non-ssl srv lookups fail
Earlier we were logging as soon as one of the lookups failed.
Fixes #3414
2015-09-06 23:44:19 -04:00
Xiang Li
2db8b53c4b
discovery: use leveled log
2015-06-11 14:22:14 -07:00
Xiang Li
9b65ff6959
discovery: drop trailing . from srv target
2015-04-09 07:08:22 -07:00
Xiang Li
f5d4c86153
discovery: add a test case for srv
...
During srv discovery, it should try to match local member with
resolved addr and return unresolved hostnames for the cluster.
2015-04-09 07:07:27 -07:00
Xiang Li
a3892221ee
*: stop using resolved tcp addr
...
We start to resolve host into tcp addrs since we generate
tcp based initial-cluster during srv discovery. However it
creates problems around tls and cluster verification. The
srv discovery only needs to use resolved the tcp addr to
find the local node. It does not have to resolve everything
and use the resolved addrs.
This fixes #2488 and #2226
2015-04-09 07:01:48 -07:00
Jonathan Boulle
f1ed69e883
*: switch to line comments for copyright
...
Build tags are not compatible with block comments.
Also adds copyright header to a few places it was missing.
2015-01-26 09:53:30 -08:00
Xiang Li
08e9c25ea5
*: move srv into pkg discovery
2014-12-24 21:37:20 -08:00