Skip to content

Commit a7f798f

Browse files
committed
Bumped version
Signed-off-by: Vishal Rana <vr@labstack.com>
1 parent 9878f94 commit a7f798f

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
IMAGE = labstack/tunnel
2-
VERSION = 0.2.9
2+
VERSION = 0.2.10
33

44
publish:
55
git tag $(VERSION)

cmd/root.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var (
3131
Long: ``,
3232
Args: cobra.MinimumNArgs(1),
3333
Run: func(cmd *cobra.Command, args []string) {
34-
c := &tunnel.Config{
34+
c := &tunnel.Configuration{
3535
Host: "labstack.me:22",
3636
RemoteHost: "0.0.0.0",
3737
RemotePort: 80,
@@ -52,7 +52,7 @@ var (
5252
SetResult(c).
5353
SetError(e).
5454
SetHeader("User-Agent", "labstack/tunnel").
55-
Get(fmt.Sprintf("https://api.labstack.com/tunnel/configs/%s", name))
55+
Get(fmt.Sprintf("https://api.labstack.com/tunnel/configurations/%s", name))
5656
if err != nil {
5757
log.Fatalf("failed to the find tunnel: %v", err)
5858
} else if res.StatusCode() != http.StatusOK {
@@ -102,7 +102,7 @@ func Execute() {
102102
func init() {
103103
cobra.OnInitialize(initConfig)
104104
rootCmd.PersistentFlags().StringVarP(&configFile, "config", "c", "", "config file (default is $HOME/tunnel/config.yaml)")
105-
rootCmd.PersistentFlags().StringVarP(&name, "name", "n", "", "config name from the dashboard")
105+
rootCmd.PersistentFlags().StringVarP(&name, "name", "n", "", "configuration name from the dashboard")
106106
rootCmd.PersistentFlags().BoolVarP(&tcp, "tcp", "", false, "tcp tunnel")
107107
rootCmd.PersistentFlags().BoolVarP(&tls, "tls", "", false, "tls tunnel")
108108
}
@@ -119,8 +119,8 @@ func initConfig() {
119119
log.Fatalf("failed to find the home directory: %v", err)
120120
}
121121
root := filepath.Join(dir, ".tunnel")
122-
if err = os.MkdirAll(filepath.Join(root, "pid"), 0755); err != nil {
123-
log.Fatalf("failed to create pid directory: %v", err)
122+
if err = os.MkdirAll(filepath.Join(root, "run"), 0755); err != nil {
123+
log.Fatalf("failed to create run directory: %v", err)
124124
}
125125
if err = os.MkdirAll(filepath.Join(root, "log"), 0755); err != nil {
126126
log.Fatalf("failed to create log directory: %v", err)

cmd/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var (
1212
Short: "Print the version of Tunnel",
1313
// Long: ``,
1414
Run: func(cmd *cobra.Command, args []string) {
15-
fmt.Println("0.2.9")
15+
fmt.Println("0.2.10")
1616
},
1717
}
1818
)

tunnel.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
)
1616

1717
type (
18-
Config struct {
18+
Configuration struct {
1919
Protocol string `json:"protocol"`
2020
Subdomain string `json:"subdomain"`
2121
Domain string `json:"domain"`
@@ -45,7 +45,7 @@ var (
4545
hostBytes = []byte("ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDoSLknvlFrFzroOlh1cqvcIFelHO+Wvj1UZ/p3J9bgsJGiKfh3DmBqEw1DOEwpHJz4zuV375TyjGuHuGZ4I4xztnwauhFplfEvriVHQkIDs6UnGwJVr15XUQX04r0i6mLbJs5KqIZTZuZ9ZGOj7ZWnaA7C07nPHGrERKV2Fm67rPvT6/qFikdWUbCt7KshbzdwwfxUohmv+NI7vw2X6vPU8pDaNEY7vS3YgwD/WlvQx+WDF2+iwLVW8OWWjFuQso6Eg1BSLygfPNhAHoiOWjDkijc8U9LYkUn7qsDCnvJxCoTTNmdECukeHfzrUjTSw72KZoM5KCRV78Wrctai1Qn6yRQz9BOSguxewLfzHtnT43/MLdwFXirJ/Ajquve2NAtYmyGCq5HcvpDAyi7lQ0nFBnrWv5zU3YxrISIpjovVyJjfPx8SCRlYZwVeUq6N2yAxCzJxbElZPtaTSoXBIFtoas2NXnCWPgenBa/2bbLQqfgbN8VQ9RaUISKNuYDIn4+eO72+RxF9THzZeV17pnhTVK88XU4asHot1gXwAt4vEhSjdUBC9KUIkfukI6F4JFxtvuO96octRahdV1Qg0vF+D0+SPy2HxqjgZWgPE2Xh/NmuIXwbE0wkymR2wrgj8Hd4C92keo2NBRh9dD7D2negnVYaYsC+3k/si5HNuCHnHQ== tunnel@labstack.com")
4646
)
4747

48-
func Create(c *Config) {
48+
func Create(c *Configuration) {
4949
hostKey, _, _, _, err := ssh.ParseAuthorizedKey(hostBytes)
5050
if err != nil {
5151
log.Fatalf("failed to parse host key: %v", err)

0 commit comments

Comments
 (0)