Prevent Gopher server start on Private instance

This commit is contained in:
Matt Baer 2020-07-23 11:11:11 -04:00
parent 6aa8de3a4b
commit dbe36861c3

2
app.go
View file

@ -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)
}