Skip to content

Commit

Permalink
api/server: don't print warning if serving on localhost
Browse files Browse the repository at this point in the history
Fixes bug moby#10728

Signed-off-by: mattyw <[email protected]>
  • Loading branch information
mattyw committed Feb 20, 2015
1 parent f4749ac commit 0ae4553
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1554,8 +1554,8 @@ func allocateDaemonPort(addr string) error {
}

func setupTcpHttp(addr string, job *engine.Job) (*HttpServer, error) {
if !strings.HasPrefix(addr, "127.0.0.1") && !job.GetenvBool("TlsVerify") {
log.Infof("/!\\ DON'T BIND ON ANOTHER IP ADDRESS THAN 127.0.0.1 IF YOU DON'T KNOW WHAT YOU'RE DOING /!\\")
if !job.GetenvBool("TlsVerify") {
log.Infof("/!\\ DON'T BIND ON ANY IP ADDRESS WITHOUT setting -tlsverify IF YOU DON'T KNOW WHAT YOU'RE DOING /!\\")
}

r := createRouter(job.Eng, job.GetenvBool("Logging"), job.GetenvBool("EnableCors"), job.Getenv("Version"))
Expand Down

0 comments on commit 0ae4553

Please sign in to comment.