- 30 Mar, 2020 2 commits
-
-
Steven Allen authored
Instead of feeding through the top-level context, feed through a cancel-free context (that still carries the same context values). Then, when the top-level context is canceled, call `stop` to shut everything down in-order. Finally, cancel the inner context to make sure everything has been cleaned up. Ideally, we just wouldn't use contexts for this. But this is strictly better than what we have.
-
Steven Allen authored
Switches to TLS as the default security transports.
-
- 24 Mar, 2020 1 commit
-
-
Steven Allen authored
Uses the new libp2p AutoNAT option.
-
- 23 Mar, 2020 1 commit
-
-
Steven Allen authored
* Support peer IDs encoded as CIDs. * Support looking up the identity key by peer ID.
-
- 20 Mar, 2020 1 commit
-
-
Cornelius Toole authored
- add the `gitignore` or `ignore options to the add command
-
- 18 Mar, 2020 4 commits
-
-
Marcin Rataj authored
When request is sent to http://localhost:8080/ipfs/$cid response has HTTP 301 status code and "Location" header with redirect destination at $cid.ipfs.localhost:8080 Redirect is followed by browsersi, but not by commandline tools. Status 301 is ignored by curl in default mode: it will print response and won't follow redirect, user needs to add -L for that. To fix curl, we return correct payload in body of HTTP 301 response, but set Clear-Site-Data header to ensure Origin sandbox can't be abused. This requires a surgical workaround: If Location header is present in ResponseWriter's Header map, we ensure http.ServeContent() returns HTTP 301 Context: https://github.com/ipfs/go-ipfs/pull/6982 License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
-
Marcin Rataj authored
License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
-
Steven Allen authored
Instead of adding a new fake header (that could be spoofed by the client...), just read the original request URI from the request object. This also removes support for suborigins. They have never been implemented in browsers and it looks like efforts have stalled. We can add support back if we need it but, well, maintaining support was going to be more trouble than it was worth. License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
-
Steven Allen authored
(we're implementing an _actual_ proxy) License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
-
- 10 Mar, 2020 1 commit
-
-
Marten Seemann authored
-
- 06 Mar, 2020 1 commit
-
-
Steven Allen authored
Turns out that our CLI help text doesn't indicate whether or not a command takes a file.
-
- 02 Mar, 2020 3 commits
-
-
Steven Allen authored
-
Alan Shaw authored
Co-Authored-By: Johnny <9611008+johnnymatthews@users.noreply.github.com>
-
Alan Shaw authored
* Adds the `--parents` optiont to the first command so that it is runnable * Updates the description to specifies the option to use if you _do_ want nonexistant intermediate directories created
-
- 26 Feb, 2020 1 commit
-
-
Steven Allen authored
This won't fetch files from graphsync but will serve them. fixes #6830
-
- 11 Feb, 2020 1 commit
-
-
Steven Allen authored
fixes #4318
-
- 07 Feb, 2020 5 commits
-
-
Steven Allen authored
-
Hector Sanjuan authored
-
Hector Sanjuan authored
Co-Authored-By: Moritz <13287984+mohe2015@users.noreply.github.com>
-
Hector Sanjuan authored
This seems like a tiny leftover.
-
Hector Sanjuan authored
-
- 05 Feb, 2020 2 commits
-
-
Steven Allen authored
-
Steven Allen authored
Instead of manually creating multiaddr strings, use the multiaddr logic to format them. We were still using `/ipfs` multiaddrs instead of `/p2p` multiaddrs.
-
- 04 Feb, 2020 2 commits
-
-
@RubenKelevra authored
Add info about the default key type
-
Steven Allen authored
It's already the default when initializing the node, we might as well make it the default when creating new keys. fixes #6861
-
- 29 Jan, 2020 2 commits
-
-
Steven Allen authored
We've deprecated this system and have yet to move to a new system. We might as well remove everything, switch to a new system, then deliberately trace the entire system.
-
Steven Allen authored
-
- 17 Jan, 2020 1 commit
-
-
Steven Allen authored
Unfortunately, we don't currently have any way to pick out good relays from bad. That means we keep searching, trying bad relays, searching some more, trying _the same relays_, etc. until we randomly find 3 good stable relays. In practice, this means we just keep searching forever and keep thrashing the DHT. see https://github.com/libp2p/go-libp2p/issues/694
-
- 10 Jan, 2020 2 commits
-
-
Steven Allen authored
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
-
Steven Allen authored
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
-
- 08 Jan, 2020 2 commits
-
-
Steven Allen authored
This will be useful when testing `refs local, `repo gc`, and `repo verify` commands once we store blocks by multihash instead of by CID. At that point, these commands will return raw v1 CIDs as the blockstore won't actually remember the codec used to store the block. Flags choice: * Ideally, we'd use the `-f, --format` flags like every other command but we're already using `-f` (format) for the format string. * Alternatively, I'd like to use `-c`. However, we're using _that_ for a global `--config` flag (bit of a waste given that it doesn't work...). `--codec` will have to do for now.
-
Steven Allen authored
-
- 06 Jan, 2020 7 commits
-
-
Steven Allen authored
-
Steven Allen authored
-
Steven Allen authored
-
Steven Allen authored
We should be _resolving_ symlinks (sometimes, still need to figure out when to do this WRT IPNS). However, that's a larger feature.
-
Steven Allen authored
1. Require files to have known sizes. We can add support for unknown sizes _later_ but we can't use ServeContent for those files. 2. Replace the `sizeReadSeeker` with a `lazySeeker`. This one makes no assumptions about how it's used so we're less likely to run into weird bugs.
-
Steven Allen authored
-
Steven Allen authored
-
- 25 Dec, 2019 1 commit
-
-
flowed authored
-