mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 04:22:33 +08:00
fix: redirect 注释
This commit is contained in:
@@ -183,11 +183,11 @@ func generateRedirectConfig(redirect types.Redirect) string {
|
||||
}
|
||||
|
||||
var sb strings.Builder
|
||||
sb.WriteString("# Auto-generated by AcePanel. DO NOT EDIT MANUALLY!\n")
|
||||
|
||||
switch redirect.Type {
|
||||
case types.RedirectTypeURL:
|
||||
// URL 重定向
|
||||
sb.WriteString("# Auto-generated by AcePanel. DO NOT EDIT MANUALLY!\n")
|
||||
sb.WriteString(fmt.Sprintf("# URL redirect: %s -> %s\n", redirect.From, redirect.To))
|
||||
if redirect.KeepURI {
|
||||
// 使用 RedirectMatch 保持 URI
|
||||
|
||||
@@ -170,11 +170,11 @@ func generateRedirectConfig(redirect types.Redirect) string {
|
||||
}
|
||||
|
||||
var sb strings.Builder
|
||||
sb.WriteString("# Auto-generated by AcePanel. DO NOT EDIT MANUALLY!\n")
|
||||
|
||||
switch redirect.Type {
|
||||
case types.RedirectTypeURL:
|
||||
// URL 重定向
|
||||
sb.WriteString("# Auto-generated by AcePanel. DO NOT EDIT MANUALLY!\n")
|
||||
sb.WriteString(fmt.Sprintf("# URL redirect: %s -> %s\n", redirect.From, redirect.To))
|
||||
sb.WriteString(fmt.Sprintf("location = %s {\n", redirect.From))
|
||||
if redirect.KeepURI {
|
||||
|
||||
Reference in New Issue
Block a user