From 89228951d3a4dbde37783f630750a962f444d3a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=A1=D0=B0?= =?UTF-8?q?=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Mon, 29 Sep 2025 21:40:45 +0300 Subject: [PATCH] fix err with imports --- sub/subJsonService.go | 2 +- web/controller/multi_server_controller.go | 4 ++-- web/middleware/auth.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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" )