From a3ecd36763e01e036c7fff47a861207ea2f45e15 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Mon, 11 Feb 2019 18:37:25 +0000 Subject: [PATCH] add ability to set address --- options.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/options.go b/options.go index 9afb7085..4012bb49 100644 --- a/options.go +++ b/options.go @@ -122,6 +122,13 @@ func Transport(t transport.Transport) Option { // Convenience options +// Address sets the address of the server +func Address(addr string) Option { + return func(o *Options) { + o.Server.Init(server.Address(addr)) + } +} + // Name of the service func Name(n string) Option { return func(o *Options) {