From 0f276a4d63abfc8387a99f89242017731bb86e60 Mon Sep 17 00:00:00 2001 From: Alex Kataev Date: Fri, 17 Jul 2020 10:45:53 +0500 Subject: [PATCH] Fixed mismatched types in the condition --- plugin/net/watcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/net/watcher.go b/plugin/net/watcher.go index c78cb7e1..f524fd79 100644 --- a/plugin/net/watcher.go +++ b/plugin/net/watcher.go @@ -49,7 +49,7 @@ func (w *watcher) ContainerStarted(id string) { aliases := make([]string, 0, len(net.Aliases)+2) aliases = append(aliases, fqdn) - if len(domain) > 0 && len(info.Name) > 1 && info.Name[0] == "/" { + if len(domain) > 0 && len(info.Name) > 1 && info.Name[0] == '/' { name := fmt.Sprintf("%s.%s", info.Name[1:], domain) aliases = append(aliases, name) }