mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #10730 from mattyw/fix-10728
api/server: don't print warning if serving on localhost
This commit is contained in:
commit
4cc8ccb8d2
1 changed files with 2 additions and 2 deletions
|
@ -1554,8 +1554,8 @@ func allocateDaemonPort(addr string) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func setupTcpHttp(addr string, job *engine.Job) (*HttpServer, error) {
|
func setupTcpHttp(addr string, job *engine.Job) (*HttpServer, error) {
|
||||||
if !strings.HasPrefix(addr, "127.0.0.1") && !job.GetenvBool("TlsVerify") {
|
if !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 /!\\")
|
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"))
|
r := createRouter(job.Eng, job.GetenvBool("Logging"), job.GetenvBool("EnableCors"), job.Getenv("Version"))
|
||||||
|
|
Loading…
Add table
Reference in a new issue