Skip to content

Commit f9351d2

Browse files
committed
Bumped v0.5.9
Signed-off-by: Vishal Rana <[email protected]>
1 parent 93600fc commit f9351d2

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
IMAGE = labstack/tunnel
2-
VERSION = 0.5.8
2+
VERSION = 0.5.9
33

44
publish:
55
git tag v$(VERSION)

cmd/root.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"github.com/spf13/viper"
1515
)
1616

17-
var name string
17+
var configuration string
1818
var protocol string
1919
var rootCmd = &cobra.Command{
2020
Use: "tunnel [address]",
@@ -41,9 +41,9 @@ var rootCmd = &cobra.Command{
4141
addr = ":" + addr
4242
}
4343
err = c.Call("Server.Connect", &daemon.ConnectRequest{
44-
Name: name,
45-
Address: addr,
46-
Protocol: daemon.Protocol(protocol),
44+
Configuration: configuration,
45+
Address: addr,
46+
Protocol: daemon.Protocol(protocol),
4747
}, rep)
4848
if err != nil {
4949
exit(err)
@@ -98,7 +98,7 @@ func initialize() {
9898
}
9999

100100
func init() {
101-
rootCmd.PersistentFlags().StringVarP(&name, "name", "n", "",
101+
rootCmd.PersistentFlags().StringVarP(&configuration, "configuration", "c", "",
102102
"configuration name from the console")
103103
rootCmd.PersistentFlags().StringVarP(&protocol, "protocol", "p", daemon.ProtocolHTTPS,
104104
"connection protocol (https, tcp, tls)")

cmd/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
)
88

99
const (
10-
version = "v0.4.2"
10+
version = "v0.5.9"
1111
)
1212

1313
var versionCmd = &cobra.Command{

daemon/connection.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -105,17 +105,17 @@ func (s *Server) newConnection(req *ConnectRequest) (c *Connection, err error) {
105105
},
106106
}
107107
e := new(Error)
108-
if req.Name != "" {
108+
if req.Configuration != "" {
109109
res, err := s.resty.R().
110110
SetResult(c.Configuration).
111111
SetError(e).
112-
Get("/configurations/" + req.Name)
112+
Get("/configurations/" + req.Configuration)
113113
if err != nil {
114114
return nil, fmt.Errorf("failed to the find the configuration: %v", err)
115115
} else if res.IsError() {
116116
return nil, fmt.Errorf("failed to the find the configuration: %s", e.Message)
117117
}
118-
c.Name = req.Name
118+
c.Name = req.Configuration
119119
} else {
120120
if req.Protocol == ProtocolTLS {
121121
c.Header.TLS = true

daemon/server.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ type (
2424
Protocol string
2525

2626
ConnectRequest struct {
27-
Name string
28-
Address string
29-
Protocol Protocol
27+
Configuration string
28+
Address string
29+
Protocol Protocol
3030
}
3131

3232
ConnectReply struct {

0 commit comments

Comments
 (0)