揮発性のメモ2

http://d.hatena.ne.jp/iww/

systemdのsocketで、接続元のIPアドレスを取得する

For IPv4 and IPv6 connections, the REMOTE_ADDR environment variable will contain the remote IP address,

https://www.freedesktop.org/software/systemd/man/systemd.socket.html

環境変数 REMOTE_ADDR で接続元のIPアドレスを取得できる。