mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-01-05 23:39:05 +03:00
Merge: - install: fix crash when trying to use uninitialized TLS module
* commit '6690441240f217cc5e6de93fa0803e3c15a50fef': - install: fix crash when trying to use uninitialized TLS module
This commit is contained in:
commit
ea38612a1d
@ -566,7 +566,9 @@ func printHTTPAddresses(proto string) {
|
|||||||
var address string
|
var address string
|
||||||
|
|
||||||
tlsConf := tlsConfigSettings{}
|
tlsConf := tlsConfigSettings{}
|
||||||
Context.tls.WriteDiskConfig(&tlsConf)
|
if Context.tls != nil {
|
||||||
|
Context.tls.WriteDiskConfig(&tlsConf)
|
||||||
|
}
|
||||||
if proto == "https" && tlsConf.ServerName != "" {
|
if proto == "https" && tlsConf.ServerName != "" {
|
||||||
if tlsConf.PortHTTPS == 443 {
|
if tlsConf.PortHTTPS == 443 {
|
||||||
log.Printf("Go to https://%s", tlsConf.ServerName)
|
log.Printf("Go to https://%s", tlsConf.ServerName)
|
||||||
|
Loading…
Reference in New Issue
Block a user