From b339532e0ca1c540376a08e290dfd26bea41551b Mon Sep 17 00:00:00 2001 From: Jesse Lang Date: Wed, 20 Dec 2017 06:49:02 -0600 Subject: [PATCH] Fix DRONE_HOST check --- cmd/drone-server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/drone-server/server.go b/cmd/drone-server/server.go index 02fc15078..89f938abd 100644 --- a/cmd/drone-server/server.go +++ b/cmd/drone-server/server.go @@ -483,7 +483,7 @@ func server(c *cli.Context) error { ) } - if !strings.HasSuffix(c.String("server-host"), "/") { + if strings.HasSuffix(c.String("server-host"), "/") { logrus.Fatalln( "DRONE_HOST must not have trailing slash", )