提交 31ea3878 作者: Steven Allen

[REMOVE ME] set min RSA bits to 1024

This way, our infra (bootstrappers, gateways, etc.) will connect to the old
bootstrappers when updated.

This isn't a security issue as these nodes are providing a public service.
上级 4a6d550e
......@@ -28,6 +28,7 @@ import (
"github.com/ipfs/go-ipfs-config"
u "github.com/ipfs/go-ipfs-util"
logging "github.com/ipfs/go-log"
crypto "github.com/libp2p/go-libp2p-core/crypto"
loggables "github.com/libp2p/go-libp2p-loggables"
ma "github.com/multiformats/go-multiaddr"
madns "github.com/multiformats/go-multiaddr-dns"
......@@ -46,6 +47,13 @@ const (
heapProfile = "ipfs.memprof"
)
func init() {
// Allow short keys. Otherwise, we'll refuse connections from the
// bootsrappers and break the network.
// TODO: Remove this when we shut those bootstrappers down.
crypto.MinRsaKeyBits = 1024
}
func loadPlugins(repoPath string) (*loader.PluginLoader, error) {
plugins, err := loader.NewPluginLoader(repoPath)
if err != nil {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论