Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

Latest commit

 

History

History
19 lines (15 loc) · 366 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 366 Bytes

caddy-arp

caddy plugin retrives client mac if possible

This plugin reads /proc/net/arp for IP-Mac mapping info. Thus works only when client is from same layer-2 scope.

The plugin add a single arp directive, provices a placeholder {client_mac}.

:80 {
  tls off
  arp
  root /srv
  gzip
  ext .htm .html
  templates
  header / x-mac {client_mac}
}