MCPcopy
hub / github.com/freedomofdevelopers/fod / foxyProxy

Function foxyProxy

fodcmd/foxyproxy.go:26–43  ·  view source on GitHub ↗
(target io.Writer, domains ...string)

Source from the content-addressed store, hash-verified

24}
25
26func foxyProxy(target io.Writer, domains ...string) error {
27 all := foxyStruct{
28 WhitePatterns: make([]foxyPattern, len(domains)),
29 }
30
31 for i := range domains {
32 all.WhitePatterns[i] = foxyPattern{
33 domains[i],
34 nameToFoxyPattern(domains[i]),
35 true,
36 true,
37 1,
38 1,
39 }
40 }
41 enc := json.NewEncoder(target)
42 return enc.Encode(all)
43}

Callers

nothing calls this directly

Calls 1

nameToFoxyPatternFunction · 0.85

Tested by

no test coverage detected