mirror of
https://github.com/openziti/zrok.git
synced 2025-08-17 19:31:12 +02:00
service -> share (#144)
This commit is contained in:
@@ -18,7 +18,7 @@ import (
|
||||
type Config struct {
|
||||
IdentityPath string
|
||||
EndpointAddress string
|
||||
Service string
|
||||
ShrToken string
|
||||
}
|
||||
|
||||
type backend struct {
|
||||
@@ -37,7 +37,7 @@ func NewBackend(cfg *Config) (*backend, error) {
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "error loading config")
|
||||
}
|
||||
listener, err := ziti.NewContextWithConfig(zcfg).ListenWithOptions(cfg.Service, &options)
|
||||
listener, err := ziti.NewContextWithConfig(zcfg).ListenWithOptions(cfg.ShrToken, &options)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "error listening")
|
||||
}
|
||||
|
Reference in New Issue
Block a user