Skip to content

Commit edffbd6

Browse files
committed
fix: use protocol 2 RESP version as default
1 parent c40f7ce commit edffbd6

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

backend/services/connection_service.go

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@ import (
55
"crypto/tls"
66
"crypto/x509"
77
"errors"
8-
"github.com/klauspost/compress/zip"
9-
"github.com/redis/go-redis/v9"
10-
"github.com/vrischmann/userdir"
11-
"github.com/wailsapp/wails/v2/pkg/runtime"
12-
"github.com/xanzy/ssh-agent"
13-
"golang.org/x/crypto/ssh"
14-
"golang.org/x/net/proxy"
158
"io"
169
"net"
1710
"net/url"
@@ -24,6 +17,14 @@ import (
2417
. "tinyrdm/backend/storage"
2518
"tinyrdm/backend/types"
2619
_ "tinyrdm/backend/utils/proxy"
20+
21+
"github.com/klauspost/compress/zip"
22+
"github.com/redis/go-redis/v9"
23+
"github.com/vrischmann/userdir"
24+
"github.com/wailsapp/wails/v2/pkg/runtime"
25+
"github.com/xanzy/ssh-agent"
26+
"golang.org/x/crypto/ssh"
27+
"golang.org/x/net/proxy"
2728
)
2829

2930
type cmdHistoryItem struct {
@@ -163,6 +164,7 @@ func (c *connectionService) buildOption(config types.ConnectionConfig) (*redis.O
163164
TLSConfig: tlsConfig,
164165
DisableIdentity: true,
165166
IdentitySuffix: "tinyrdm_",
167+
Protocol: 2,
166168
}
167169
if config.Network == "unix" {
168170
option.Network = "unix"

0 commit comments

Comments
 (0)