Skip to content

Commit

Permalink
feat: enable tampering server by default
Browse files Browse the repository at this point in the history
Co-authored-by: Jose Luis Lucas <[email protected]>
  • Loading branch information
panchoh and Jose Luis Lucas committed Mar 6, 2019
1 parent 0d02a0d commit a7b9e9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ func newStartCommand(ctx *cmdContext) *cobra.Command {
f.StringSliceVar(&conf.GossipJoinAddr, "gossip-join-addr", []string{}, "Gossip: Comma-delimited list of nodes ([host]:port), through which a cluster can be joined")

// INFO: testing purposes
f.BoolVar(&conf.EnableTampering, "tampering", false, "Allow tampering api for proof demostrations")
// FIXME: return to false in the next milestone
f.BoolVar(&conf.EnableTampering, "tampering", true, "Allow tampering api for proof demostrations")
_ = f.MarkHidden("tampering")

// Lookups
Expand Down
1 change: 1 addition & 0 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ func (s *Server) Start() error {
}

if s.tamperingServer != nil {
log.Info(">>>>>>>>>>>>>>>>>>> FIXME: Tampering is enabled! Do not run this in production!")
go func() {
log.Debug(" * Starting tampering HTTP server in addr: localhost:8081")
if err := s.tamperingServer.ListenAndServe(); err != http.ErrServerClosed {
Expand Down

0 comments on commit a7b9e9d

Please sign in to comment.