1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-07-01 03:25:23 +00:00
v2fly/app/policy/config.go
2017-11-27 22:09:30 +01:00

16 lines
241 B
Go

package policy
import (
"time"
"github.com/golang/protobuf/proto"
)
func (s *Second) Duration() time.Duration {
return time.Second * time.Duration(s.Value)
}
func (p *Policy) OverrideWith(another *Policy) {
proto.Merge(p, another)
}