Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit 44ae9f2

Browse files
committed
fix --no-https
1 parent 95dcb14 commit 44ae9f2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

config/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ func NewConfigFromCli(c *cli.Context) *Config {
4646
Workers: c.StringSlice("worker"),
4747
Manager: c.String("manager"),
4848
BWLimit: c.Int("bwlimit"),
49+
NoHTTPS: c.Bool("no-https"),
4950
Verbose: c.Bool("verbose"),
5051
Quiet: c.Bool("quiet"),
5152
}

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func supportHTTPS(name, endpoint string) bool {
3434
case "jss":
3535
return false
3636
case "s3":
37-
ps := strings.SplitN(endpoint, ".", 2)
37+
ps := strings.SplitN(strings.Split(endpoint, ":")[0], ".", 2)
3838
if len(ps) > 1 && net.ParseIP(ps[1]) != nil {
3939
return false
4040
}

0 commit comments

Comments
 (0)