Steven Allen
3339ce3b0e
Merge pull request #6774 from MichaelMure/pincoreapi
...
pin: implement pin/ls with only CoreApi
2020-05-05 18:49:19 -07:00
Michael Muré
6388f5a1c2
pin: honor the context more accurately
2020-05-05 14:19:38 +02:00
Michael Muré
6ef190f5a6
pin: implement pin/ls with only CoreApi
2020-05-04 18:02:50 -07:00
Steven Allen
0189e42bcb
Merge pull request #7061 from RubenKelevra/patch-1
...
README.md: typo
2020-05-04 17:53:52 -07:00
Gowtham G
e93f2002f5
optimize import order
2020-05-02 14:19:01 +05:30
Gowtham G
214d29ebf8
#7252 - print error message
2020-05-01 22:37:20 +05:30
Gowtham G
9201b1dde6
#7252 - read content directly instead of sending 512bytes
2020-05-01 20:29:32 +05:30
Gowtham G
2e87ac88a3
Fixes #7252 - Uses gabriel-vasile/mimetype to support additional content types
2020-05-01 12:19:36 +05:30
RubenKelevra
a048008c5b
fix typo in command texts
2020-04-30 20:36:00 +02:00
Steven Allen
46ae021733
feat: show the absolute path every time
...
Even for dnslink websites.
fixes https://github.com/ipfs/go-ipfs/issues/7205
2020-04-26 17:19:17 -07:00
Steven Allen
d8bc5c991e
feat: always show the hash
...
Previously, we only showed this /ipns paths. However, knowing the hash of the
current directory is useful regardless.
2020-04-26 16:09:02 -07:00
Dominic Della Valle
048adadb5e
reformat log helptext (80 char width)
2020-04-24 12:17:00 -04:00
Dominic Della Valle
05d0573e02
update log helptext to match actual levels
2020-04-24 12:13:34 -04:00
Steven Allen
5d13ac370b
fix: fix duplicate block issue in bitswap
...
1. Increase broadcast timeout.
2. Fix use of sessions when pinning.
This also includes some bitswap changes to reduce some memory allocations and
optimize some hot spots.
2020-04-23 00:31:06 -07:00
Steven Allen
9033ba9cad
Merge pull request #7181 from rex4539/fix-typos
...
Fix typos and cleanup
2020-04-20 21:43:47 -07:00
Dimitris Apostolou
1e437c7e97
Fix typos and cleanup
2020-04-20 22:00:01 +03:00
@RubenKelevra
8a85c0a344
merge conflicts with upstream
2020-04-18 13:11:56 +02:00
Henrique Dias
135c451997
feat: webui 2.7.5
2020-04-17 20:10:21 +01:00
Marcin Rataj
8290ec11c3
fix: subdomain redirect for dir CIDs
...
Closes #7164
License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
2020-04-15 23:50:53 +02:00
Steven Allen
1f23fc000c
feat: add autonat config options
...
1. Enable AutoNATService on _all_ nodes by default. If it's an issue, we can
disable it in RC3 but this will give us the best testing results.
2. Expose options to configure AutoNAT rate limiting.
2020-04-14 20:54:58 -07:00
Marcin Rataj
7d397ac219
feat: webui v2.7.4
...
(supersedes v2.7.3)
License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
2020-04-14 17:51:25 +02:00
Steven Allen
28e31e17a8
Merge pull request #7127 from ipfs/feat/dual-dht
...
feat: introduce the dual WAN/LAN DHT
2020-04-13 19:01:12 -07:00
Steven Allen
d0d508b2e1
fix: fix 'dht query' command to actually return the closest peers
...
Then improve the tests such that they actually work.
2020-04-13 17:42:03 -07:00
Steven Allen
b64d17b924
properly expose dual dht
2020-04-13 15:58:12 -07:00
Steven Allen
8679954f9b
chore: update flatfs
...
And remove retry logic. This was flatfs specific and we've moved the logic down
into flatfs itself.
This update:
* Retries in more cases when we run out of file descriptors.
* Ensures we don't leak temporary files on batch put.
2020-04-10 16:42:29 -07:00
Steven Allen
e55c688fca
fix: run tests in "dht server" mode
...
Otherwise, we'd need to wait a delay on start for nodes to start becoming
servers.
2020-04-09 23:07:27 -07:00
Steven Allen
bb08f7fe56
assign public IP addresses for tests that need them
2020-04-09 21:41:42 -07:00
Steven Allen
8a002250dc
feat: introduce the dual WAN/LAN DHT
...
And only join the WAN DHT if we're publicly reachable.
2020-04-09 21:41:38 -07:00
Peter Rabbitson
fbe40883e6
Remove PresentInImport tracking as per conversation
2020-04-08 14:54:49 -07:00
Peter Rabbitson
90c58d6cac
Dag import functionality only ( no progress )
...
This still works over "loosely defined" .car files
Please refer to the sharness tests for extra info
We can tighten this up if the sentiment is "Postel was wrong"
2020-04-08 14:54:49 -07:00
Peter Rabbitson
1a85fddfeb
For now remove export from the gateway whitelist
2020-04-08 14:54:49 -07:00
Peter Rabbitson
4772ca6134
Add simple byte-counting export progress-bar
2020-04-08 14:54:49 -07:00
Peter Rabbitson
ae5a9e0549
Bring back pipe closure from other end
2020-04-08 14:54:49 -07:00
Peter Rabbitson
380bffa146
Move commented out code together
2020-04-08 14:54:49 -07:00
Peter Rabbitson
73bb0e8353
Check against error veriable
2020-04-08 14:54:49 -07:00
Peter Rabbitson
c2f9849a2b
Fastify with go-car version taking a session
2020-04-08 14:54:49 -07:00
Peter Rabbitson
f129f24bd7
Bring back error-prettifyer removed in f6b707d85f
2020-04-08 14:54:49 -07:00
Peter Rabbitson
3dca025f05
Remove pipe close since we are already in error
2020-04-08 14:54:49 -07:00
Peter Rabbitson
7a749ea7cb
Less confusing CLI helptext
2020-04-08 14:54:49 -07:00
Peter Rabbitson
a5f19c4f9c
Remove unnecessay prefetch
2020-04-08 14:54:49 -07:00
Peter Rabbitson
b0a461ca5c
Typo fix
2020-04-08 14:54:49 -07:00
Peter Rabbitson
635e333d60
Dag export command, silent, no progress
2020-04-08 14:54:49 -07:00
Steven Allen
ba631bbab0
fix: start the IPFS dht in server mode by default for now
2020-04-06 18:53:16 -07:00
Steven Allen
56e0e18294
feat: add a dhtserver option
2020-04-06 18:53:16 -07:00
Steven Allen
70fe64581d
feat(dht): update to cypress DHT in backwards compatibility mode
...
This upgrades to the next DHT version, but in backwards compatibility mode.
2020-04-06 18:53:14 -07:00
@RubenKelevra
ae5bd6f649
files.go: fix typos / wording
2020-04-06 01:52:08 +02:00
Hector Sanjuan
7340543615
corehttp: Gateway handler: add Allow headers when returning MethodNotAllowed
...
Spec says that response with 405 must set Allow headers.
2020-04-05 09:57:57 +02:00
Hector Sanjuan
1b490476e5
HTTP API: Disallow GET requests on API
...
This commit upgrades go-ipfs-cmds and configures the commands HTTP API Handler
to only allow POST/OPTIONS, disallowing GET and others in the handling of
command requests in the IPFS HTTP API (where before every type of request
method was handled, with GET/POST/PUT/PATCH being equivalent).
The Read-Only commands that the HTTP API attaches to the gateway endpoint will
additional handled GET as they did before (but stop handling PUT,DELETEs).
By limiting the request types we address the possibility that a website
accessed by a browser abuses the IPFS API by issuing GET requests to it which
have no Origin or Referrer set, and are thus bypass CORS and CSRF protections.
This is a breaking change for clients that relay on GET requests against the
HTTP endpoint (usually :5001). Applications integrating on top of the
gateway-read-only API should still work (including cross-domain access).
Co-Authored-By: Steven Allen <steven@stebalien.com>
Co-Authored-By: Marcin Rataj <lidel@lidel.org>
2020-04-05 09:57:57 +02:00
@RubenKelevra
7b750664fb
Revert last change (the default is now printed twice)
2020-04-04 05:34:56 +02:00
Hector Sanjuan
3b30e8e2b0
ipfs files cp: improve docstring with better words.
...
And align capitalization.
2020-04-02 20:46:31 +02:00