Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/sub
diff options
context:
space:
mode:
authorsomebodywashere <68244480+somebodywashere@users.noreply.github.com>2024-03-21 09:51:12 +0300
committerGitHub <noreply@github.com>2024-03-21 09:51:12 +0300
commit43ec88bb2485b1370337d7a187d5479dc8997629 (patch)
treeef010c2785e312bd79c22cb246aa9699dadb0c22 /sub
parentc5b30d6c6c5640618512f219f7db2186afbb7b7b (diff)
Small fixes (#2106)
Diffstat (limited to 'sub')
-rw-r--r--sub/subService.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/sub/subService.go b/sub/subService.go
index 0ed1d454..da286641 100644
--- a/sub/subService.go
+++ b/sub/subService.go
@@ -45,6 +45,10 @@ func (s *SubService) GetSubs(subId string, host string) ([]string, string, error
return nil, "", err
}
+ if len(inbounds) == 0 {
+ return nil, "", common.NewError("No inbounds found with ", subId)
+ }
+
s.datepicker, err = s.settingService.GetDatepicker()
if err != nil {
s.datepicker = "gregorian"