diff --git a/example/dchat/dchatd/dchatd_config.toml b/example/dchat/dchatd/dchatd_config.toml index 658b5b587..13c8ef142 100644 --- a/example/dchat/dchatd/dchatd_config.toml +++ b/example/dchat/dchatd/dchatd_config.toml @@ -9,6 +9,13 @@ rpc_listen = "tcp://127.0.0.1:51054" #rpc_disabled_methods = ["p2p.get_info"] [net] +## Outbound connect slots. Required for outbound nodes. +outbound_connections = 5 + +# Whitelisted network transports for outbound connections +active_profiles = ["tcp"] + +[net.profiles."tcp"] ## P2P accept addresses Required for inbound nodes. #inbound=["tcp://127.0.0.1:51554"] @@ -17,6 +24,3 @@ rpc_listen = "tcp://127.0.0.1:51054" ## Seed nodes to connect to. Required for inbound and outbound nodes. seeds=["tcp://127.0.0.1:50515"] - -## Outbound connect slots. Required for outbound nodes. -outbound_connections = 5 diff --git a/example/dchat/dchatd/example/node1.toml b/example/dchat/dchatd/example/node1.toml index 253ebc0c5..40c8fd1d9 100644 --- a/example/dchat/dchatd/example/node1.toml +++ b/example/dchat/dchatd/example/node1.toml @@ -3,11 +3,12 @@ verbose = 2 [net] hostlist = "example/node1.tsv" -inbound = ["tcp://[::]:10202"] -allowed_transports = ["tcp"] -external_addrs = ["tcp://[::]:10202"] -seeds = ["tcp://[::1]:10200"] outbound_connections = 5 magic_bytes = [127, 64, 12, 201] localnet = true +active_profiles = ["tcp"] +[net.profiles."tcp"] +inbound = ["tcp://[::]:10202"] +external_addrs = ["tcp://[::]:10202"] +seeds = ["tcp://[::1]:10200"] diff --git a/example/dchat/dchatd/example/node2.toml b/example/dchat/dchatd/example/node2.toml index 0ba02cd88..40c931a46 100644 --- a/example/dchat/dchatd/example/node2.toml +++ b/example/dchat/dchatd/example/node2.toml @@ -3,11 +3,12 @@ verbose = 2 [net] hostlist = "example/node2.tsv" -inbound = ["tcp://[::]:10201"] -allowed_transports = ["tcp"] -external_addrs=["tcp://[::1]:10201"] -seeds = ["tcp://[::1]:10200"] outbound_connections = 5 magic_bytes = [127, 64, 12, 201] localnet = true +active_profiles = ["tcp"] +[net.profiles."tcp"] +inbound = ["tcp://[::]:10201"] +external_addrs=["tcp://[::1]:10201"] +seeds = ["tcp://[::1]:10200"] diff --git a/example/dchat/dchatd/example/seed.toml b/example/dchat/dchatd/example/seed.toml index e070006b9..ddcf3adad 100644 --- a/example/dchat/dchatd/example/seed.toml +++ b/example/dchat/dchatd/example/seed.toml @@ -3,10 +3,11 @@ verbose = 2 [net] hostlist = "example/seed.tsv" -inbound=["tcp://[::]:10200"] -allowed_transports = ["tcp"] -seeds=[] -# no outbounds for seed node magic_bytes=[127, 64, 12, 201] localnet = true +active_profiles = ["tcp"] +[net.profiles."tcp"] +inbound=["tcp://[::]:10200"] +seeds=[] +# no outbounds for seed node