fix copy/pasta errors

This commit is contained in:
Eugene K 2023-05-04 11:30:05 -04:00
parent 8785a19e0e
commit 7c86a1ef68
No known key found for this signature in database
GPG Key ID: C8CCB4692865B818
2 changed files with 3 additions and 3 deletions

View File

@ -206,13 +206,13 @@ func (cmd *sharePrivateCommand) run(_ *cobra.Command, args []string) {
be, err := udpTunnel.NewBackend(cfg)
if err != nil {
if !panicInstead {
tui.Error("unable to create tcpTunnel backend", err)
tui.Error("unable to create udpTunnel backend", err)
}
panic(err)
}
go func() {
if err := be.Run(); err != nil {
logrus.Errorf("error running tcpTunnel backend: %v", err)
logrus.Errorf("error running udpTunnel backend: %v", err)
}
}()

View File

@ -98,7 +98,7 @@ func (c *clientConn) timeout(idle time.Duration) {
func NewFrontend(cfg *FrontendConfig) (*Frontend, error) {
lAddr, err := net.ResolveUDPAddr("udp", cfg.BindAddress)
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)
if err != nil {