mirror of
https://github.com/openziti/zrok.git
synced 2025-06-22 02:31:54 +02:00
fix copy/pasta errors
This commit is contained in:
parent
8785a19e0e
commit
7c86a1ef68
@ -206,13 +206,13 @@ func (cmd *sharePrivateCommand) run(_ *cobra.Command, args []string) {
|
|||||||
be, err := udpTunnel.NewBackend(cfg)
|
be, err := udpTunnel.NewBackend(cfg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if !panicInstead {
|
if !panicInstead {
|
||||||
tui.Error("unable to create tcpTunnel backend", err)
|
tui.Error("unable to create udpTunnel backend", err)
|
||||||
}
|
}
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
go func() {
|
go func() {
|
||||||
if err := be.Run(); err != nil {
|
if err := be.Run(); err != nil {
|
||||||
logrus.Errorf("error running tcpTunnel backend: %v", err)
|
logrus.Errorf("error running udpTunnel backend: %v", err)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ func (c *clientConn) timeout(idle time.Duration) {
|
|||||||
func NewFrontend(cfg *FrontendConfig) (*Frontend, error) {
|
func NewFrontend(cfg *FrontendConfig) (*Frontend, error) {
|
||||||
lAddr, err := net.ResolveUDPAddr("udp", cfg.BindAddress)
|
lAddr, err := net.ResolveUDPAddr("udp", cfg.BindAddress)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrapf(err, "error resolving tcp address '%v'", cfg.BindAddress)
|
return nil, errors.Wrapf(err, "error resolving udp address '%v'", cfg.BindAddress)
|
||||||
}
|
}
|
||||||
zCfgPath, err := zrokdir.ZitiIdentityFile(cfg.IdentityName)
|
zCfgPath, err := zrokdir.ZitiIdentityFile(cfg.IdentityName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user