Small fixes (#2106)

This commit is contained in:
somebodywashere authored and GitHub committed 2024-03-21 10:21:12 +03:30
1 parent c5b30d6c6c
commit 43ec88bb24
2 files changed
+5 -1

No files matched your search

+4
View File
@@ -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"