Commit Graph

14 Commits

Author SHA1 Message Date
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.
2019-08-12 19:13:21 -07:00
Raúl Kripalani d87f89314c
Consolidate abstractions and core types into go-libp2p-core (#601) 2019-05-26 22:55:46 +01:00
vyzo fee7b01e32 add missing word 2019-04-06 18:11:33 +03:00
Steven Allen 1d8efc31aa doc: document relay options 2019-04-06 07:42:38 -07:00
vyzo a1b5b9ed53 explicit option to enable autorelay 2018-12-04 12:09:52 +02:00
vyzo 8faf5403c5 fix typo 2018-11-04 10:52:29 +02:00
vyzo d24fe6ae91 update libp2p.New constructor to construct relayed/routed hosts 2018-11-04 10:52:29 +02:00
Steven Allen d59ca83d48 switch to DisablePing instead of PingCustom 2018-10-24 07:44:25 -07:00
vyzo 1056fa8119 Ping constructor option, enabled by default 2018-10-19 12:37:20 +03:00
vyzo 5834054ad8 fix typo 2018-09-28 12:50:53 +03:00
vyzo 0600392e23 enable relay by default in New 2018-09-28 11:30:45 +03:00
Steven Allen a36d383413 add tests for NoTransports and NoListen 2018-08-21 14:40:18 -07:00
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.
2018-08-21 14:40:18 -07:00
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.
2018-06-04 21:22:24 -07:00