mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-05 00:08:06 +08:00
NoFetch gateway option
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
This commit is contained in:
parent
7b4ab36817
commit
aa5daed3cb
@ -2,6 +2,7 @@ package corehttp
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/ipfs/go-ipfs/core/coreapi/interface/options"
|
||||
"net"
|
||||
"net/http"
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user