diff --git a/cmd/drone-server/server.go b/cmd/drone-server/server.go index 02fc1507..89f938ab 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", )