summaryrefslogtreecommitdiff
blob: df68ce5cdeaa540f6d1f31b70928b2d90db3e00d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function rsync_deny(applet)
  applet:send("@RSYNCD: 29.0\n")
  local banmsg = applet:get_var("txn.rsync_deny_message")
  if banmsg == nil then
    banmsg = "MESSAGE GOES HERE"
  end
  applet:send(banmsg)
  applet:send("\n")
  applet:send("@RSYNCD: EXIT\n")
end

core.register_service("deny-rsync", "tcp", rsync_deny)