mirror of
https://github.com/openziti/zrok.git
synced 2025-06-07 18:36:54 +02:00
move autolistener into util (#780)
This commit is contained in:
parent
a0b7416695
commit
e7331e89f5
@ -8,6 +8,7 @@ import (
|
|||||||
"github.com/openziti/zrok/agent/proctree"
|
"github.com/openziti/zrok/agent/proctree"
|
||||||
"github.com/openziti/zrok/environment/env_core"
|
"github.com/openziti/zrok/environment/env_core"
|
||||||
"github.com/openziti/zrok/sdk/golang/sdk"
|
"github.com/openziti/zrok/sdk/golang/sdk"
|
||||||
|
"github.com/openziti/zrok/util"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
@ -110,7 +111,7 @@ func (a *Agent) gateway(cfg *AgentConfig) {
|
|||||||
logrus.Fatalf("unable to register gateway: %v", err)
|
logrus.Fatalf("unable to register gateway: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
listener, err := AutoListener(cfg.ConsoleAddress, cfg.ConsoleStartPort, cfg.ConsoleEndPort)
|
listener, err := util.AutoListener(cfg.ConsoleAddress, cfg.ConsoleStartPort, cfg.ConsoleEndPort)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Fatalf("unable to create a listener: %v", err)
|
logrus.Fatalf("unable to create a listener: %v", err)
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package agent
|
package util
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
Loading…
x
Reference in New Issue
Block a user