@cryptotaxi247 / kubo / commits / bc31fd957

go-ipfs-config: Add Gateway.NoFetch

Łukasz Magiera committed Oct 26, 2018 at 01:55 UTC bc31fd957c8d9db529f69e20f39954d0b0971570
2 files changed +2
config/gateway.go
+1
@@ -7,4 +7,5 @@ type Gateway struct {
7 Writable bool
8 PathPrefixes []string
9 APICommands []string
10 + NoFetch bool
11 }
config/init.go
+1
@@ -60,6 +60,7 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) {
60 Gateway: Gateway{
61 RootRedirect: "",
62 Writable: false,
63 + NoFetch: false,
64 PathPrefixes: []string{},
65 HTTPHeaders: map[string][]string{
66 "Access-Control-Allow-Origin": []string{"*"},