mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
added warning
This commit is contained in:
parent
13f1939a63
commit
59835135c5
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue