Skip to content

Commit

Permalink
NoFetch gateway option
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
  • Loading branch information
magik6k committed Jan 3, 2019
1 parent 95fe905 commit 0923996
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/corehttp/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package corehttp

import (
"fmt"
"github.com/ipfs/go-ipfs/core/coreapi/interface/options"
"net"
"net/http"

Expand All @@ -25,7 +26,7 @@ func GatewayOption(writable bool, paths ...string) ServeOption {
return nil, err
}

api, err := coreapi.NewCoreAPI(n)
api, err := coreapi.NewCoreAPI(n, options.Api.Offline(cfg.Gateway.NoFetch))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 0923996

Please sign in to comment.