Skip to content

Commit

Permalink
Rename client to tunnel package
Browse files Browse the repository at this point in the history
  • Loading branch information
dviejokfs committed Apr 3, 2022
1 parent cea397b commit 3a54c52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package client

import (
"fmt"
"github.com/kfsoftware/getout/pkg/client"
"github.com/kfsoftware/getout/pkg/tunnel"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
"time"
Expand All @@ -19,7 +19,7 @@ func (c *clientCmd) validate() error {
return nil
}
func (c *clientCmd) startTunnel() error {
tunnelClient := client.NewTunnelClient(c.tunnel)
tunnelClient := tunnel.NewTunnelClient(c.tunnel)
remoteAddress := fmt.Sprintf("%s:%d", c.host, c.port)
err := tunnelClient.StartTlsTunnel(c.sni, remoteAddress)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/client/client.go → pkg/tunnel/tunnel.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package client
package tunnel

import (
"fmt"
Expand Down

0 comments on commit 3a54c52

Please sign in to comment.