fix: method in vmess http-opts is not used

This commit is contained in:
sduoduo233
2023-10-16 09:16:36 +08:00
committed by wwqgtxx
parent 129283066f
commit 9f530525d7
2 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,8 @@
package util
import "github.com/samber/lo"
func EmptyOr[T comparable](v T, def T) T {
ret, _ := lo.Coalesce(v, def)
return ret
}