Prevent Gopher server start on Private instance
This commit is contained in:
parent
6aa8de3a4b
commit
dbe36861c3
1 changed files with 1 additions and 1 deletions
2
app.go
2
app.go
|
@ -410,7 +410,7 @@ func Serve(app *App, r *mux.Router) {
|
||||||
}()
|
}()
|
||||||
|
|
||||||
// Start gopher server
|
// Start gopher server
|
||||||
if app.cfg.Server.GopherPort > 0 {
|
if app.cfg.Server.GopherPort > 0 && !app.cfg.App.Private {
|
||||||
go initGopher(app)
|
go initGopher(app)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue