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) {