mirror of
https://code.rocketnine.space/tslocum/twins.git
synced 2024-05-10 11:04:31 +02:00
Use case insensitive comparison when matching vhost
This commit is contained in:
parent
c64a59c44e
commit
f91f42464d
|
@ -152,6 +152,8 @@ func readconfig(configPath string) error {
|
|||
|
||||
config.fcgiPools = make(map[string]gofast.ConnFactory)
|
||||
for hostname, host := range config.Hosts {
|
||||
hostname = strings.ToLower(hostname)
|
||||
|
||||
if defaultHost != nil {
|
||||
if host.Cert == "" {
|
||||
host.Cert = defaultHost.Cert
|
||||
|
|
Loading…
Reference in a new issue