mirror of
https://github.com/writefreely/writefreely
synced 2024-11-10 19:34:19 +00:00
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
|
||||
if app.cfg.Server.GopherPort > 0 {
|
||||
if app.cfg.Server.GopherPort > 0 && !app.cfg.App.Private {
|
||||
go initGopher(app)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue