mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-07-26 09:52:14 +03:00
fix(sub) Happ profileEnableRouting button (#6008)
This commit is contained in:
@@ -12,7 +12,6 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strconv"
|
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
@@ -711,7 +710,9 @@ func (a *SUBController) ApplyCommonHeaders(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Advanced (Happ)
|
// Advanced (Happ)
|
||||||
c.Writer.Header().Set("Routing-Enable", strconv.FormatBool(profileEnableRouting))
|
if profileEnableRouting {
|
||||||
|
c.Writer.Header().Set("Routing-Enable", "true")
|
||||||
|
}
|
||||||
if profileRoutingRules != "" {
|
if profileRoutingRules != "" {
|
||||||
c.Writer.Header().Set("Routing", profileRoutingRules)
|
c.Writer.Header().Set("Routing", profileRoutingRules)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user