mirror of
https://github.com/minio/minio.git
synced 2025-04-22 19:35:47 -04:00
Remove redundant --tls flag
This commit is contained in:
parent
e3378ee448
commit
7dd5f0ab8d
6
main.go
6
main.go
@ -28,10 +28,6 @@ func main() {
|
|||||||
Value: "",
|
Value: "",
|
||||||
Usage: "key.pem",
|
Usage: "key.pem",
|
||||||
},
|
},
|
||||||
cli.BoolFlag{
|
|
||||||
Name: "tls,t",
|
|
||||||
Usage: "http address to listen on",
|
|
||||||
},
|
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "storage-type,s",
|
Name: "storage-type,s",
|
||||||
Value: "file",
|
Value: "file",
|
||||||
@ -39,12 +35,12 @@ func main() {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
app.Action = func(c *cli.Context) {
|
app.Action = func(c *cli.Context) {
|
||||||
tls := c.Bool("tls")
|
|
||||||
storageTypeStr := c.String("storage-type")
|
storageTypeStr := c.String("storage-type")
|
||||||
address := c.String("http-address")
|
address := c.String("http-address")
|
||||||
log.Println(address)
|
log.Println(address)
|
||||||
certFile := c.String("cert")
|
certFile := c.String("cert")
|
||||||
keyFile := c.String("key")
|
keyFile := c.String("key")
|
||||||
|
tls := (certFile != "" && keyFile != "")
|
||||||
storageType := getStorageType(storageTypeStr)
|
storageType := getStorageType(storageTypeStr)
|
||||||
serverConfig := server.ServerConfig{
|
serverConfig := server.ServerConfig{
|
||||||
Address: address,
|
Address: address,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user