Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mdns-repeater: Support blacklist on the commandline #208

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion net/mdns-repeater/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PORTNAME= mdns-repeater
PORTVERSION= 1.11
PORTVERSION= 1.12
PORTREVISION= 1
CATEGORIES= net dns

Expand Down
3 changes: 2 additions & 1 deletion net/mdns-repeater/files/mdns-repeater.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# Add the following lines to /etc/rc.conf to enable mdns-repeater
# mdns_repeater_enable="YES"
# mdns_repeater_interfaces="vr0 vr1"
# mdns_repeater_blacklist="-b 192.168.1.1/24"

. /etc/rc.subr

Expand All @@ -20,7 +21,7 @@ load_rc_config ${name}

pidfile="/var/run/mdns-repeater.pid"
command="%%PREFIX%%/bin/mdns-repeater"
command_args=" -p ${pidfile} ${mdns_repeater_interfaces}"
command_args=" -p ${pidfile} $(mdns_repeater_blacklist) ${mdns_repeater_interfaces}"

# run service
run_rc_command "$1"