mirror of
https://github.com/alireza0/x-ui.git
synced 2026-08-28 04:15:05 +00:00
small changes
This commit is contained in:
parent
50d4e67e59
commit
1c660bbea1
2 changed files with 1 additions and 2 deletions
|
|
@ -76,7 +76,6 @@ func (a *SUBController) subs(c *gin.Context) {
|
|||
}
|
||||
|
||||
func (a *SUBController) subJsons(c *gin.Context) {
|
||||
println(c.Request.Header["User-Agent"][0])
|
||||
subId := c.Param("subid")
|
||||
host := strings.Split(c.Request.Host, ":")[0]
|
||||
jsonSub, header, err := a.subJsonService.GetJson(subId, host)
|
||||
|
|
|
|||
|
|
@ -1340,7 +1340,7 @@ func (s *InboundService) MigrationRequirements() {
|
|||
json.Unmarshal([]byte(inbounds[inbound_index].Settings), &settings)
|
||||
clients, ok := settings["clients"].([]interface{})
|
||||
if ok {
|
||||
// Fix Clinet configuration problems
|
||||
// Fix Client configuration problems
|
||||
var newClients []interface{}
|
||||
for client_index := range clients {
|
||||
c := clients[client_index].(map[string]interface{})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue