fix: method in vmess http-opts is not used
This commit is contained in:
8
common/util/manipulation.go
Normal file
8
common/util/manipulation.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user