Skip to content

Commit

Permalink
修复兼容性
Browse files Browse the repository at this point in the history
  • Loading branch information
xmdhs committed Sep 6, 2023
1 parent 3bb28ce commit 3094ab5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions service/arg.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ func customUrlTest(config []byte, u []model.UrlTestArg) ([]byte, error) {
if v.Type == "urltest" {
t, _ = lo.TryOr[int](func() (int, error) { return strconv.Atoi(v.Tolerance) }, 0)
}
if v.Type == "" {
v.Type = "urltest"
}
sl = append(sl, model.SingUrltest{
Outbounds: nt,
Tag: v.Tag,
Expand Down

0 comments on commit 3094ab5

Please sign in to comment.