fix(sub) Happ profileEnableRouting button (#6008)

This commit is contained in:
Alexey
2026-07-21 16:53:08 +03:00
committed by MHSanaei
parent 123fac222b
commit c87649d9f2
+3 -2
View File
@@ -12,7 +12,6 @@ import (
"os"
"path/filepath"
"regexp"
"strconv"
"strings"
"sync"
"time"
@@ -711,7 +710,9 @@ func (a *SUBController) ApplyCommonHeaders(
}
// Advanced (Happ)
c.Writer.Header().Set("Routing-Enable", strconv.FormatBool(profileEnableRouting))
if profileEnableRouting {
c.Writer.Header().Set("Routing-Enable", "true")
}
if profileRoutingRules != "" {
c.Writer.Header().Set("Routing", profileRoutingRules)
}