/tls/configure and /tls/status -- now there's an explicit 'enabled' bool.

This commit is contained in:
Eugene Bujak
2019-02-14 18:00:23 +03:00
committed by Eugene Bujak
parent 8da90a7f4a
commit 81bb4aea78
3 changed files with 8 additions and 5 deletions

View File

@@ -62,6 +62,7 @@ type dnsConfig struct {
var defaultDNS = []string{"tls://1.1.1.1", "tls://1.0.0.1"}
type tlsConfigSettings struct {
Enabled bool `yaml:"enaled" json:"enabled"`
ServerName string `yaml:"server_name" json:"server_name,omitempty"`
ForceHTTPS bool `yaml:"force_https" json:"force_https,omitempty"`
PortHTTPS int `yaml:"port_https" json:"port_https,omitempty"`