diff options
| author | somebodywashere <68244480+somebodywashere@users.noreply.github.com> | 2024-03-21 09:51:12 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-21 09:51:12 +0300 |
| commit | 43ec88bb2485b1370337d7a187d5479dc8997629 (patch) | |
| tree | ef010c2785e312bd79c22cb246aa9699dadb0c22 /sub | |
| parent | c5b30d6c6c5640618512f219f7db2186afbb7b7b (diff) | |
Small fixes (#2106)
Diffstat (limited to 'sub')
| -rw-r--r-- | sub/subService.go | 4 |
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" |
