mirror of
https://github.com/openziti/ziti.git
synced 2026-10-13 07:41:17 +00:00
Merge pull request openziti/fabric#279 from openziti/expose.loaded.identity
exposes controller.Identity() to avoid re-parses
This commit is contained in:
@@ -35,6 +35,7 @@ import (
|
||||
"github.com/openziti/fabric/xweb"
|
||||
"github.com/openziti/foundation/channel2"
|
||||
"github.com/openziti/foundation/common"
|
||||
"github.com/openziti/foundation/identity/identity"
|
||||
"github.com/openziti/foundation/profiler"
|
||||
"github.com/openziti/foundation/util/concurrenz"
|
||||
"github.com/sirupsen/logrus"
|
||||
@@ -287,3 +288,7 @@ func (c *Controller) RegisterXWebHandlerFactory(x xweb.WebHandlerFactory) error
|
||||
func (c *Controller) GetNetwork() *network.Network {
|
||||
return c.network
|
||||
}
|
||||
|
||||
func (c *Controller) Identity() identity.Identity {
|
||||
return c.config.Id
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user