This commit is contained in:
Darien Raymond committed 2017-12-14 15:02:36 +01:00
1 parent 6797483fe0
commit 484bdeecc9
4 files changed
+8

No files matched your search

+2
View File
@@ -7,10 +7,12 @@ import (
"v2ray.com/core/common"
)
// Instance is an instance of Policy manager.
type Instance struct {
levels map[uint32]*policy.Policy
}
// New creates new Policy manager instance.
func New(ctx context.Context, config *policy.Config) (*Instance, error) {
levels := config.Level
if levels == nil {