mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-02-16 18:09:47 +03:00
- install: fix crash when trying to use uninitialized TLS module
This commit is contained in:
parent
105e2dd1ee
commit
6690441240
1 changed files with 3 additions and 1 deletions
|
@ -566,7 +566,9 @@ func printHTTPAddresses(proto string) {
|
|||
var address string
|
||||
|
||||
tlsConf := tlsConfigSettings{}
|
||||
Context.tls.WriteDiskConfig(&tlsConf)
|
||||
if Context.tls != nil {
|
||||
Context.tls.WriteDiskConfig(&tlsConf)
|
||||
}
|
||||
if proto == "https" && tlsConf.ServerName != "" {
|
||||
if tlsConf.PortHTTPS == 443 {
|
||||
log.Printf("Go to https://%s", tlsConf.ServerName)
|
||||
|
|
Loading…
Add table
Reference in a new issue