ccb67a691b
pkg/netutil: stop resolving in place
...
It helps to copy out a and b, and not modify the original a and b.
2015-08-21 15:39:57 -07:00
059233768e
pkg/netutil: not introduce empty url when converting
...
It should not make slices with length and append elements at the same
time.
2015-08-21 15:39:48 -07:00
c530acf6a4
pkg/netutil: not export resolve and urlsEqual functions
...
They are only used in this package, so there is no need to public them.
2015-08-21 15:39:38 -07:00
bad1b20620
pkg/netutil: fix false negative comparison
...
Sort the resolved URLs before DeepEqual, so it will not compare URLs
that may be out of order due to resolution.
2015-08-21 15:39:29 -07:00
bbefb0ad0b
Revert "Revert "Treat URLs have same IP address as same""
...
This reverts commit 3153e635d5
.
Conflicts:
etcdserver/config.go
2015-08-21 15:39:10 -07:00
8ad7ed321e
*:godep log pkg
2015-06-11 14:22:14 -07:00
a45f53986f
pkg/netutil: use leveled log
2015-06-11 14:19:52 -07:00
3153e635d5
Revert "Treat URLs have same IP address as same"
...
This reverts commit f8ce5996b0
.
etcd no longer resolves TCP addresses passed in through flags,
so there is no need to compare hostname and IP slices anymore.
(for more details: a3892221ee
)
Conflicts:
etcdserver/cluster.go
etcdserver/config.go
pkg/netutil/netutil.go
pkg/netutil/netutil_test.go
2015-05-16 03:21:10 -07:00
4611c3b2d7
netutil: add BasicAuth function
...
etcd ships it's own BasicAuth function and no longer requires
Go 1.4 to build.
2015-03-20 17:32:33 -07:00
f8ce5996b0
Treat URLs have same IP address as same
...
- To solve validation error problem using URLs in hostname #2123
2015-01-27 04:36:41 +09:00
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
705ec45083
etcdmain: resolve DNS hostnames for client and peer URLs
...
etcd resolves DNS hostnames to IP addresses for client and peer URLs
before creating any listening sockets.
The following messages are logged during startup:
etcd: Resolving infra0.coreos.com:2380 to 10.0.1.10:2380
Fixes #1991
2014-12-24 13:12:32 -05:00