Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
4bc2713a
Commit
4bc2713a
authored
Feb 04, 2015
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more compact respresentation
parent
94c64c57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
cmd/ipfs/daemon.go
cmd/ipfs/daemon.go
+3
-5
No files found.
cmd/ipfs/daemon.go
View file @
4bc2713a
...
...
@@ -203,16 +203,14 @@ func daemonFunc(req cmds.Request, res cmds.Response) {
}
return
false
})
gateway
Config
:=
corehttp
.
GatewayConfig
{
gateway
:=
corehttp
.
NewGateway
(
corehttp
.
GatewayConfig
{
Writable
:
true
,
BlockList
:
blocklist
,
}
gatewayOption
:=
corehttp
.
NewGateway
(
gatewayConfig
)
.
ServeOption
()
})
var
opts
=
[]
corehttp
.
ServeOption
{
corehttp
.
CommandsOption
(
*
req
.
Context
()),
corehttp
.
WebUIOption
,
gatewayOption
,
gateway
.
Serve
Option
()
,
}
if
rootRedirect
!=
nil
{
opts
=
append
(
opts
,
rootRedirect
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment