@@ -58,23 +58,24 @@ func main() {
5858 relayOpts := []relayv2.Option {
5959 relayv2 .WithResources (relayv2.Resources {
6060 Limit : & relayv2.RelayLimit {
61- Duration : 120 * time .Second , // Duration in seconds
62- Data : 17179869184 , // Data limit in bytes (16 GiB)
61+ Duration : 480000000 * time .Second , // Duration in seconds
62+ Data : 171798691840 , // Data limit in bytes (160 GiB)
6363 },
64- MaxReservations : 512 ,
65- MaxCircuits : 512 ,
66- MaxReservationsPerPeer : 16 ,
67- MaxReservationsPerIP : 32 ,
68- MaxReservationsPerASN : 64 ,
69- ReservationTTL : 360 * time .Hour , // TTL in hours
70- BufferSize : 8192 ,
64+ MaxReservations : 2048 ,
65+ MaxCircuits : 2048 ,
66+ MaxReservationsPerPeer : 2048 ,
67+ MaxReservationsPerIP : 2048 ,
68+ MaxReservationsPerASN : 2048 ,
69+ ReservationTTL : 360000 * time .Hour , // TTL in hours
70+ BufferSize : 81920 ,
7171 }),
7272 }
7373
7474 h , err := libp2p .New (
7575 libp2p .ListenAddrs (listenAddrs ... ),
7676 libp2p .Identity (privKey ), // Use the private key for identity
7777 libp2p .EnableRelayService (relayOpts ... ),
78+ libp2p .ForceReachabilityPublic (),
7879 )
7980 if err != nil {
8081 log .Fatalf ("Failed to create libp2p host: %v" , err )
0 commit comments