MCPcopy Create free account
hub / github.com/gokrazy/rsync / formatModuleList

Method formatModuleList

rsyncd/rsyncd.go:126–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124}
125
126func (s *Server) formatModuleList() string {
127 if len(s.modules) == 0 {
128 return ""
129 }
130 var list strings.Builder
131 for _, mod := range s.modules {
132 comment := mod.Name // for now
133 fmt.Fprintf(&list, "%s\t%s\n",
134 mod.Name,
135 comment)
136 }
137 return list.String()
138}
139
140func checkACL(acls []string, remoteAddr string) error {
141 if len(acls) == 0 {

Callers 1

HandleDaemonConnMethod · 0.95

Calls 1

StringMethod · 0.80

Tested by

no test coverage detected