mirror of
https://github.com/hacdias/webdav.git
synced 2026-09-27 05:31:54 +08:00
style: replace Tls by TLS
This commit is contained in:
+3
-3
@@ -150,7 +150,7 @@ func parseConfig() *cfg {
|
|||||||
data := struct {
|
data := struct {
|
||||||
Address string `json:"address" yaml:"address"`
|
Address string `json:"address" yaml:"address"`
|
||||||
Port string `json:"port" yaml:"port"`
|
Port string `json:"port" yaml:"port"`
|
||||||
Tls bool `json:"tls" yaml:"tls"`
|
TLS bool `json:"tls" yaml:"tls"`
|
||||||
Cert string `json:"cert" yaml:"cert"`
|
Cert string `json:"cert" yaml:"cert"`
|
||||||
Key string `json:"key" yaml:"key"`
|
Key string `json:"key" yaml:"key"`
|
||||||
Scope string `json:"scope" yaml:"scope"`
|
Scope string `json:"scope" yaml:"scope"`
|
||||||
@@ -160,7 +160,7 @@ func parseConfig() *cfg {
|
|||||||
}{
|
}{
|
||||||
Address: "0.0.0.0",
|
Address: "0.0.0.0",
|
||||||
Port: "0",
|
Port: "0",
|
||||||
Tls: false,
|
TLS: false,
|
||||||
Cert: "cert.pem",
|
Cert: "cert.pem",
|
||||||
Key: "key.pem",
|
Key: "key.pem",
|
||||||
Scope: "./",
|
Scope: "./",
|
||||||
@@ -181,7 +181,7 @@ func parseConfig() *cfg {
|
|||||||
config := &cfg{
|
config := &cfg{
|
||||||
address: data.Address,
|
address: data.Address,
|
||||||
port: data.Port,
|
port: data.Port,
|
||||||
tls: data.Tls,
|
tls: data.TLS,
|
||||||
cert: data.Cert,
|
cert: data.Cert,
|
||||||
key: data.Key,
|
key: data.Key,
|
||||||
auth: map[string]string{},
|
auth: map[string]string{},
|
||||||
|
|||||||
Reference in New Issue
Block a user