added warning

Upstream-commit: 59835135c572db08798dde7a5e211e7f4b453742
Component: engine
This commit is contained in:
Victor Vieux
2013-05-23 16:15:36 +00:00
parent 95bff3248e
commit c30cd2c29a

View File

@ -101,6 +101,9 @@ func removePidFile(pidfile string) {
}
func daemon(pidfile, addr string, port int, autoRestart bool) error {
if addr != "127.0.0.1" {
log.Println("/!\\ DON'T BIND ON ANOTHER IP ADDRESS THAN 127.0.0.1 IF YOU DON'T KNOW WHAT YOU'RE DOING /!\\")
}
if err := createPidFile(pidfile); err != nil {
log.Fatal(err)
}