From f9862d40439e847ca870103fea6ce94c990a8a4f Mon Sep 17 00:00:00 2001 From: Sean Chittenden Date: Wed, 1 Jun 2016 02:09:05 -0700 Subject: [PATCH] Update godoc for newServer to reflect DNS and IP-based inputs Requested by: alex --- client/rpcproxy/server_endpoint.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/rpcproxy/server_endpoint.go b/client/rpcproxy/server_endpoint.go index f7c356c39..f9fef0c02 100644 --- a/client/rpcproxy/server_endpoint.go +++ b/client/rpcproxy/server_endpoint.go @@ -40,7 +40,11 @@ func (s *ServerEndpoint) Key() *EndpointKey { } } -// newServer creates a new Server instance with a resolvable endpoint +// newServer creates a new Server instance with a resolvable endpoint. +// `name` can be either an IP address or a DNS name. If `name` is a DNS +// name, it must be resolvable to an IP address (most inputs are IP +// addresses, not DNS names, but both work equally well when the name is +// resolvable). func newServer(name string) (s *ServerEndpoint, err error) { s = &ServerEndpoint{ Name: name,