1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00

Fixed domain mapping for subdomain less routes

This commit is contained in:
Uncled1023 2021-12-04 21:35:46 -08:00
parent b62e2f1922
commit 37fc3ca560

View File

@ -65,6 +65,10 @@ namespace Teknik.Utilities.Routing
private static string[] BuildHosts(List<string> subdomains, List<string> hosts)
{
var fullHosts = new List<string>();
if (subdomains != null &&
subdomains.Count == 0)
return hosts?.ToArray();
foreach (var sub in subdomains)
{
foreach (var host in hosts)