Jump to content
FIBOS社区
Sign in to follow this  
huntformm

p2p自发现配置说明

Recommended Posts

p2p自发现配置说明

开启p2p自发现:

当连接上一个节点后,它如果和你都开启了p2p自发现,那么它会把自己连接上的节点共享给你,你也会连上他给你的节点,这样更好增加网络的稳定性

支持fibos版本

v1.7.1.4 +

如何开启p2p自发现

net 插件配置 p2p-max-nodes-per-host 例子

fibos.load("net", {
	"p2p-peer-address": [],
	"max-clients": 0,  //允许链接数量无限
	"p2p-listen-endpoint": "0.0.0.0:9870",
	"p2p-max-nodes-per-host": 100, //允许p2p发现
	"agent-name": "FIBOS node"
});

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×