Skip to content

feat: force legacy tunnels to new version #2914

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 12, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! remove all legacy tunnel code
  • Loading branch information
coadler committed Jul 11, 2022
commit 755b0bce4255bf8da430f6300e50fe7e9a6d88ab
14 changes: 0 additions & 14 deletions coderd/devtunnel/tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package devtunnel
import (
"bytes"
"context"
"encoding/base64"
"encoding/hex"
"encoding/json"
"fmt"
Expand Down Expand Up @@ -312,16 +311,3 @@ func writeConfig(cfg Config) error {

return nil
}

func encodeBase64ToHex(key string) string {
decoded, err := base64.StdEncoding.DecodeString(key)
if err != nil {
panic(err)
}

if len(decoded) != 32 {
panic((xerrors.New("key should be 32 bytes: " + key)))
}

return hex.EncodeToString(decoded)
}