File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -41,3 +41,11 @@ libp2p-yamux = { path = "../../muxers/yamux" }
41
41
all-features = true
42
42
rustdoc-args = [" --cfg" , " docsrs" ]
43
43
rustc-args = [" --cfg" , " docsrs" ]
44
+
45
+ [[example ]]
46
+ name = " client"
47
+ path = " examples/autonat_client.rs"
48
+
49
+ [[example ]]
50
+ name = " server"
51
+ path = " examples/autonat_server.rs"
Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ impl Behaviour {
116
116
refresh_interval : Duration :: from_secs ( 30 ) ,
117
117
boot_delay : Duration :: from_secs ( 5 ) ,
118
118
throttle_server_period : Duration :: ZERO ,
119
+ only_global_ips : false ,
119
120
..Default :: default ( )
120
121
} ,
121
122
) ,
Original file line number Diff line number Diff line change @@ -95,7 +95,10 @@ impl Behaviour {
95
95
) ) ,
96
96
auto_nat : autonat:: Behaviour :: new (
97
97
local_public_key. to_peer_id ( ) ,
98
- autonat:: Config :: default ( ) ,
98
+ autonat:: Config {
99
+ only_global_ips : false ,
100
+ ..Default :: default ( )
101
+ } ,
99
102
) ,
100
103
}
101
104
}
You can’t perform that action at this time.
0 commit comments