From cf854f9a2074b5ce88999b852bb46e277defb27a Mon Sep 17 00:00:00 2001 From: Mildred Ki'Lya Date: Wed, 28 Jan 2015 12:57:09 +0100 Subject: [PATCH] go-ipfs-config: Make gateway read-only by default and add option to make it writable --- config/gateway.go | 1 + config/init.go | 1 + 2 files changed, 2 insertions(+) diff --git a/config/gateway.go b/config/gateway.go index 7bc3eb020..c0885778d 100644 --- a/config/gateway.go +++ b/config/gateway.go @@ -3,4 +3,5 @@ package config // Gateway contains options for the HTTP gateway server. type Gateway struct { RootRedirect string + Writable bool } diff --git a/config/init.go b/config/init.go index aef5624ec..976d26688 100644 --- a/config/init.go +++ b/config/init.go @@ -54,6 +54,7 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) { Gateway: Gateway{ RootRedirect: "", + Writable: false, }, }