1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-30 10:11:23 +02:00

remove unnecessary slashes from url

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2017-05-07 11:12:23 +08:00
parent 8e58099c51
commit 92a8c236af
No known key found for this signature in database
GPG Key ID: 0F84B2110C500B1F

View File

@ -4,6 +4,7 @@ import (
"context"
"net/http"
"net/url"
"strings"
"time"
"golang.org/x/crypto/acme/autocert"
@ -446,7 +447,7 @@ func setupEvilGlobals(c *cli.Context, v store.Store) {
droneserver.Config.Server.Cert = c.String("server-cert")
droneserver.Config.Server.Key = c.String("server-key")
droneserver.Config.Server.Pass = c.String("agent-secret")
droneserver.Config.Server.Host = c.String("server-host")
droneserver.Config.Server.Host = strings.TrimRight(c.String("server-host"), "/")
droneserver.Config.Server.Port = c.String("server-addr")
droneserver.Config.Pipeline.Networks = c.StringSlice("network")
droneserver.Config.Pipeline.Volumes = c.StringSlice("volume")