1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Change log severity for non-tlsverify bind

closes #12459

Signed-off-by: Hu Keping <hukeping@huawei.com>
This commit is contained in:
Hu Keping 2015-04-17 18:05:30 +08:00
parent 24af878358
commit b052f7a87c
2 changed files with 3 additions and 2 deletions

View file

@ -53,7 +53,7 @@ func NewServer(proto, addr string, job *engine.Job) (Server, error) {
return nil, nil
case "tcp":
if !job.GetenvBool("TlsVerify") {
logrus.Infof("/!\\ DON'T BIND ON ANY IP ADDRESS WITHOUT setting -tlsverify IF YOU DON'T KNOW WHAT YOU'RE DOING /!\\")
logrus.Warn("/!\\ DON'T BIND ON ANY IP ADDRESS WITHOUT setting -tlsverify IF YOU DON'T KNOW WHAT YOU'RE DOING /!\\")
}
if l, err = NewTcpSocket(addr, tlsConfigFromJob(job)); err != nil {
return nil, err

View file

@ -1,4 +1,5 @@
// +build windows
package server
import (
@ -25,7 +26,7 @@ func NewServer(proto, addr string, job *engine.Job) (Server, error) {
switch proto {
case "tcp":
if !job.GetenvBool("TlsVerify") {
logrus.Infof("/!\\ DON'T BIND ON ANY IP ADDRESS WITHOUT setting -tlsverify IF YOU DON'T KNOW WHAT YOU'RE DOING /!\\")
logrus.Warn("/!\\ DON'T BIND ON ANY IP ADDRESS WITHOUT setting -tlsverify IF YOU DON'T KNOW WHAT YOU'RE DOING /!\\")
}
if l, err = NewTcpSocket(addr, tlsConfigFromJob(job)); err != nil {
return nil, err