diff --git a/network/router/options.go b/network/router/options.go index 3ede4776..9c5581d4 100644 --- a/network/router/options.go +++ b/network/router/options.go @@ -67,5 +67,6 @@ func DefaultOptions() Options { Address: DefaultAddress, Registry: registry.DefaultRegistry, Table: NewTable(), + Network: "local", } } diff --git a/network/router/router.go b/network/router/router.go index 725248f0..366c2fbf 100644 --- a/network/router/router.go +++ b/network/router/router.go @@ -26,6 +26,10 @@ type Router interface { // Option used by the router type Option func(*Options) +var ( + DefaultRouter = NewRouter() +) + // NewRouter creates new Router and returns it func NewRouter(opts ...Option) Router { return newRouter(opts...)