API server now protected with rate limiter, fixed extra dot on URL on frontend

This commit is contained in:
yusing
2024-11-03 10:11:27 +08:00
parent ddbee9ec19
commit 01b7ec2a99
2 changed files with 17 additions and 2 deletions

View File

@@ -89,7 +89,7 @@ func HomepageConfig() homepage.Config {
if item.URL == "" {
if len(domains) > 0 {
item.URL = fmt.Sprintf("%s://%s.%s:%s", proto, strings.ToLower(alias), domains[0], port)
item.URL = fmt.Sprintf("%s://%s%s:%s", proto, strings.ToLower(alias), domains[0], port)
}
}
item.AltURL = r.TargetURL().String()