mirror of
https://code.rocketnine.space/tslocum/twins.git
synced 2024-05-20 23:55:41 +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)
|
config.fcgiPools = make(map[string]gofast.ConnFactory)
|
||||||
for hostname, host := range config.Hosts {
|
for hostname, host := range config.Hosts {
|
||||||
|
hostname = strings.ToLower(hostname)
|
||||||
|
|
||||||
if defaultHost != nil {
|
if defaultHost != nil {
|
||||||
if host.Cert == "" {
|
if host.Cert == "" {
|
||||||
host.Cert = defaultHost.Cert
|
host.Cert = defaultHost.Cert
|
||||||
|
|
Loading…
Reference in a new issue