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:
parent
b62e2f1922
commit
37fc3ca560
@ -65,6 +65,10 @@ namespace Teknik.Utilities.Routing
|
|||||||
private static string[] BuildHosts(List<string> subdomains, List<string> hosts)
|
private static string[] BuildHosts(List<string> subdomains, List<string> hosts)
|
||||||
{
|
{
|
||||||
var fullHosts = new List<string>();
|
var fullHosts = new List<string>();
|
||||||
|
if (subdomains != null &&
|
||||||
|
subdomains.Count == 0)
|
||||||
|
return hosts?.ToArray();
|
||||||
|
|
||||||
foreach (var sub in subdomains)
|
foreach (var sub in subdomains)
|
||||||
{
|
{
|
||||||
foreach (var host in hosts)
|
foreach (var host in hosts)
|
||||||
|
Loading…
Reference in New Issue
Block a user