Prevent Gopher server start on Private instance

pull/273/head
Matt Baer 5 years ago
parent 6aa8de3a4b
commit dbe36861c3
  1. 2
      app.go

@ -410,7 +410,7 @@ func Serve(app *App, r *mux.Router) {
}()
// Start gopher server
if app.cfg.Server.GopherPort > 0 {
if app.cfg.Server.GopherPort > 0 && !app.cfg.App.Private {
go initGopher(app)
}

Loading…
Cancel
Save