Files
zzgandClaude Opus 5.5 506bc20652 ipecho: Go replacement for i.z.gd/i.zk.gd PHP pages
Serves the same fields and formats as the old PHP scripts, with
HTML/XML/CSV output escaped, X-Real-IP trusted only from loopback,
and a 2s reverse-DNS timeout. m.z.gd becomes an nginx return.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 09:05:06 -07:00

23 lines
447 B
Bash

#!/bin/sh
# PROVIDE: ipecho
# REQUIRE: LOGIN NETWORKING
# KEYWORD: shutdown
. /etc/rc.subr
name=ipecho
rcvar=ipecho_enable
load_rc_config $name
: ${ipecho_enable:=NO}
: ${ipecho_addr:=127.0.0.1:8490}
pidfile=/var/run/ipecho/ipecho.pid
start_precmd="install -d -o nobody /var/run/ipecho"
command=/usr/sbin/daemon
command_args="-f -u nobody -P ${pidfile} -r -S -T ipecho /usr/local/ipecho/bin/ipecho -addr ${ipecho_addr}"
run_rc_command "$1"