提交 c52c6229 编写于 作者: D Davies Liu

fix --no-https

上级 70b53b06
......@@ -46,6 +46,7 @@ func NewConfigFromCli(c *cli.Context) *Config {
Workers: c.StringSlice("worker"),
Manager: c.String("manager"),
BWLimit: c.Int("bwlimit"),
NoHTTPS: c.Bool("no-https"),
Verbose: c.Bool("verbose"),
Quiet: c.Bool("quiet"),
}
......
......@@ -34,7 +34,7 @@ func supportHTTPS(name, endpoint string) bool {
case "jss":
return false
case "s3":
ps := strings.SplitN(endpoint, ".", 2)
ps := strings.SplitN(strings.Split(endpoint, ":")[0], ".", 2)
if len(ps) > 1 && net.ParseIP(ps[1]) != nil {
return false
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册