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
1 changed files with 1 additions and 1 deletions

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