Skip to content

Commit

Permalink
fix: make gateway readonly
Browse files Browse the repository at this point in the history
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
  • Loading branch information
gfanton authored and n0izn0iz committed Jan 29, 2022
1 parent f25fd1e commit 013bc9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go/bind/core/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ func (n *Node) ServeConfig() error {

if len(cfg.Addresses.Gateway) > 0 {
for _, maddr := range cfg.Addresses.Gateway {
if _, err := n.ServeGatewayMultiaddr(maddr, true); err != nil {
// public gateway should be readonly by default
if _, err := n.ServeGatewayMultiaddr(maddr, false); err != nil {
return fmt.Errorf("cannot serve `%s`: %s", maddr, err.Error())
}
}
Expand Down

0 comments on commit 013bc9d

Please sign in to comment.