Small fixes (#2106)

This commit is contained in:
somebodywashere
2024-03-21 09:51:12 +03:00
committed by GitHub
parent c5b30d6c6c
commit 43ec88bb24
2 changed files with 5 additions and 1 deletions

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"