From dac54c53700613e482c34c38423ef1be4abb1195 Mon Sep 17 00:00:00 2001 From: Daniel Dickinson Date: Sun, 6 Mar 2011 18:56:54 +0000 Subject: [PATCH] [packages] miniupnpd: Add uci option for manually specified external IP SVN-Revision: 25896 --- net/miniupnpd/files/miniupnpd.init | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/net/miniupnpd/files/miniupnpd.init b/net/miniupnpd/files/miniupnpd.init index 12cb550e21..12404bd48f 100644 --- a/net/miniupnpd/files/miniupnpd.init +++ b/net/miniupnpd/files/miniupnpd.init @@ -7,9 +7,11 @@ start() { config_load "upnpd" local extiface intiface upload download logging secure enabled natpmp + local extip config_get extiface config external_iface config_get intiface config internal_iface + config_get extip config external_ip config_get upload config upload config_get download config download config_get_bool logging config log_output 0 @@ -27,6 +29,9 @@ start() { local args="-i $ifname" local iface + [ -n "$extip" ] && \ + append args "-o $extip" + for iface in ${intiface:-lan}; do local ipaddr config_get ipaddr "$iface" ipaddr -- 2.30.2