File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package main
2
2
3
3
import (
4
4
"context"
5
+ "crypto/tls"
5
6
"flag"
6
7
"fmt"
7
8
"github.com/redis/go-redis/v9"
@@ -55,7 +56,10 @@ func run(ctx context.Context) error {
55
56
Addr : zyg .RedisAddr (),
56
57
Username : zyg .RedisUsername (),
57
58
Password : zyg .RedisPassword (),
58
- DB : 0 ,
59
+ TLSConfig : & tls.Config {
60
+ InsecureSkipVerify : true ,
61
+ },
62
+ DB : 0 ,
59
63
})
60
64
61
65
defer func (rdb * redis.Client ) {
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package main
2
2
3
3
import (
4
4
"context"
5
+ "crypto/tls"
5
6
"flag"
6
7
"fmt"
7
8
"github.com/redis/go-redis/v9"
@@ -55,7 +56,10 @@ func run(ctx context.Context) error {
55
56
Addr : zyg .RedisAddr (),
56
57
Username : zyg .RedisUsername (),
57
58
Password : zyg .RedisPassword (),
58
- DB : 0 ,
59
+ TLSConfig : & tls.Config {
60
+ InsecureSkipVerify : true ,
61
+ },
62
+ DB : 0 ,
59
63
})
60
64
61
65
defer func (rdb * redis.Client ) {
You can’t perform that action at this time.
0 commit comments