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:
parent
24af878358
commit
b052f7a87c
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue