From 6d8dd98bf42e3104d7576f7a681d951ce12cbe71 Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 2 Jul 2013 16:42:21 -0400 Subject: Add option to RFC2136 to find/use the public IP if the interface IP is private. (Off by default) --- usr/local/www/services_rfc2136_edit.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'usr/local/www') diff --git a/usr/local/www/services_rfc2136_edit.php b/usr/local/www/services_rfc2136_edit.php index 091cfbd..965940f 100644 --- a/usr/local/www/services_rfc2136_edit.php +++ b/usr/local/www/services_rfc2136_edit.php @@ -55,6 +55,7 @@ if (isset($id) && isset($a_rfc2136[$id])) { $pconfig['server'] = $a_rfc2136[$id]['server']; $pconfig['interface'] = $a_rfc2136[$id]['interface']; $pconfig['usetcp'] = isset($a_rfc2136[$id]['usetcp']); + $pconfig['usepublicip'] = isset($a_rfc2136[$id]['usepublicip']); $pconfig['descr'] = $a_rfc2136[$id]['descr']; } @@ -89,6 +90,7 @@ if ($_POST) { $rfc2136['keydata'] = $_POST['keydata']; $rfc2136['server'] = $_POST['server']; $rfc2136['usetcp'] = $_POST['usetcp'] ? true : false; + $rfc2136['usepublicip'] = $_POST['usepublicip'] ? true : false; $rfc2136['interface'] = $_POST['interface']; $rfc2136['descr'] = $_POST['descr']; @@ -191,6 +193,13 @@ include("head.inc"); " > + + + + " > + + + -- cgit v1.1