MCPcopy
hub / github.com/evilsocket/opensnitch / isTemporary

Method isTemporary

daemon/rule/loader.go:323–325  ·  view source on GitHub ↗
(r *Rule)

Source from the content-addressed store, hash-verified

321}
322
323func (l *Loader) isTemporary(r *Rule) bool {
324 return r.Duration != Restart && r.Duration != Always && r.Duration != Once
325}
326
327func (l *Loader) isUniqueName(name string) bool {
328 _, found := l.rules[name]

Callers 2

loadRuleMethod · 0.95
replaceUserRuleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected