|
@@ -303,16 +303,19 @@ func RestartServer() {
|
|
|
|
|
|
func GetAllHostnames(applyWildCard bool, removePorts bool) []string {
|
|
|
mainHostname := GetMainConfig().HTTPConfig.Hostname
|
|
|
+ hostnames := []string{
|
|
|
+ mainHostname,
|
|
|
+ }
|
|
|
|
|
|
if applyWildCard && MainConfig.HTTPConfig.UseWildcardCertificate {
|
|
|
- mainHostname = "*." + mainHostname
|
|
|
+ mainHostnameWild = "*." + mainHostname
|
|
|
+ hostnames := []string{
|
|
|
+ mainHostname,
|
|
|
+ mainHostnameWild,
|
|
|
+ }
|
|
|
Log("Using wildcard certificate for " + mainHostname + " and all subdomains.")
|
|
|
}
|
|
|
|
|
|
- hostnames := []string{
|
|
|
- mainHostname,
|
|
|
- }
|
|
|
-
|
|
|
proxies := GetMainConfig().HTTPConfig.ProxyConfig.Routes
|
|
|
for _, proxy := range proxies {
|
|
|
if proxy.UseHost && proxy.Host != "" && strings.Contains(proxy.Host, ".") && !strings.Contains(proxy.Host, ",") && !strings.Contains(proxy.Host, " ") {
|