Cory Schwartz
04a93f4080
static check fixes
4 years ago
vyzo
b313b4af98
option for custom dns resolver
4 years ago
Raúl Kripalani
d4d6adff6e
make the {F=>f}iltersConnectionGater private. ( #946 )
5 years ago
Aarsh Shah
887f2c40cf
implement connection gating at the top level ( #881 )
5 years ago
Will Scott
c08993b4e8
switch bool to enum
5 years ago
Will Scott
5473f0ea0e
clarify nat options
5 years ago
Will Scott
97be7d6b7b
Expose option for setting autonat throttling
5 years ago
Will Scott
1f18d0f3e2
Clearer naming of nat override options
5 years ago
Will Scott
685ba00833
update to current autonat interface
5 years ago
Will Scott
8037ce2dca
generation of dialer host when needed
5 years ago
Steven Allen
8248da96b0
doc(options): fix autorelay documentation
Routing is only required for autorelay when no static relays are configured.
5 years ago
Marten Seemann
68f9fd0e13
change PrivateNetwork to accept a PSK, update constructor magic
5 years ago
Vasco Santos
fe2c13c71b
docs: uniform comment sentences
5 years ago
vyzo
9cd56c0bab
use a global variable for default relays
and rename DefaultRelays option to DefaultStaticRelays.
5 years ago
Alex Browne
1b9b84b810
Add Filters option ( #717 )
The new `Filters` option allows users to take ownership of the `Filters` struct, and is suitable for cases where the addresses you want to accept/deny change dynamically.
5 years ago
vyzo
235848850e
options to configure known relays for autorelay
5 years ago
Steven Allen
d73a51776e
new: allow overriding the user-agent with an option
Instead of using a global variable.
This also:
* Adds an option to the identify service to set the user agent.
* Removes the ability to pass an identify service to NewHost as any reasonable
Identify service already needs to be constructed with an instance of the host.
5 years ago
Raúl Kripalani
d87f89314c
Consolidate abstractions and core types into go-libp2p-core ( #601 )
6 years ago
vyzo
fee7b01e32
add missing word
6 years ago
Steven Allen
1d8efc31aa
doc: document relay options
6 years ago
vyzo
a1b5b9ed53
explicit option to enable autorelay
6 years ago
vyzo
8faf5403c5
fix typo
6 years ago
vyzo
d24fe6ae91
update libp2p.New constructor to construct relayed/routed hosts
6 years ago
Steven Allen
d59ca83d48
switch to DisablePing instead of PingCustom
6 years ago
vyzo
1056fa8119
Ping constructor option, enabled by default
6 years ago
vyzo
5834054ad8
fix typo
6 years ago
vyzo
0600392e23
enable relay by default in New
6 years ago
Steven Allen
a36d383413
add tests for NoTransports and NoListen
6 years ago
Steven Allen
ad5b7b9ba6
add options for disabling the default listen address/transports
So, in go-ipfs at least, we *don't* pass the listen addresses into the libp2p
constructor. Instead, we specify them later.
This option allows us to tell libp2p to not listen by default.
6 years ago
Steven Allen
41c6834850
refactor for transport changes
Also, make the libp2p constructor fully useful. There should now be no need to
manually construct a swarm/host.
7 years ago