Changeset 476 in code


Ignore:
Timestamp:
Mar 19, 2021, 8:27:19 AM (4 years ago)
Author:
contact
Message:

Fix panic on GetCertificate

Fixes the following panic:

panic: interface conversion: interface {} is tls.Certificate, not *tls.Certificate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmd/soju/main.go

    r475 r476  
    5858                        log.Fatalf("failed to load TLS certificate and key: %v", err)
    5959                }
    60                 tlsCert.Store(cert)
     60                tlsCert.Store(&cert)
    6161
    6262                tlsCfg = &tls.Config{
     
    205205                                        break
    206206                                }
    207                                 tlsCert.Store(cert)
     207                                tlsCert.Store(&cert)
    208208                        }
    209209                case syscall.SIGINT, syscall.SIGTERM:
Note: See TracChangeset for help on using the changeset viewer.