diff --git a/sub/subJsonService.go b/sub/subJsonService.go index 86a7a405..66c1bf46 100644 --- a/sub/subJsonService.go +++ b/sub/subJsonService.go @@ -201,7 +201,7 @@ func (s *SubJsonService) getConfig(inbound *model.Inbound, client model.Client, newConfigJson[key] = value } newConfigJson["outbounds"] = newOutbounds - newConfigJson["remarks"] = s.SubService.genRemark(inbound, client.Email, extPrxy["remark"].(string)) + newConfigJson["remarks"] = s.SubService.genRemark(inbound, client.Email, extPrxy["remark"].(string), host) newConfig, _ := json.MarshalIndent(newConfigJson, "", " ") newJsonArray = append(newJsonArray, newConfig) diff --git a/web/controller/multi_server_controller.go b/web/controller/multi_server_controller.go index 65605f4a..84a979ba 100644 --- a/web/controller/multi_server_controller.go +++ b/web/controller/multi_server_controller.go @@ -3,8 +3,8 @@ package controller import ( "strconv" - "x-ui/database/model" - "x-ui/web/service" + "github.com/mhsanaei/3x-ui/v2/database/model" + "github.com/mhsanaei/3x-ui/v2/web/service" "github.com/gin-gonic/gin" ) diff --git a/web/middleware/auth.go b/web/middleware/auth.go index 140b3f3d..c3698321 100644 --- a/web/middleware/auth.go +++ b/web/middleware/auth.go @@ -2,7 +2,7 @@ package middleware import ( "net/http" - "x-ui/web/service" + "github.com/mhsanaei/3x-ui/v2/web/service" "github.com/gin-gonic/gin" )