aboutsummaryrefslogtreecommitdiffstats
path: root/config/netio/netioserver.xml
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2015-11-14 23:59:00 -0600
committerChris Buechler <cmb@pfsense.org>2015-11-14 23:59:00 -0600
commit1300905cdad5406847b3c01642589f4c5ca4a6a3 (patch)
treeecdb7dd4b671a711758056c4c3563b152f9701da /config/netio/netioserver.xml
parent8e9c2c3e8a9ffec1ba405810338f36e1d0d9637b (diff)
parenta1d5c2f568c0cefa4b2f5117658b81cb9534df39 (diff)
downloadpfsense-packages-1300905cdad5406847b3c01642589f4c5ca4a6a3.tar.gz
pfsense-packages-1300905cdad5406847b3c01642589f4c5ca4a6a3.tar.bz2
pfsense-packages-1300905cdad5406847b3c01642589f4c5ca4a6a3.zip
Merge pull request #1155 from doktornotor/patch-11
Diffstat (limited to 'config/netio/netioserver.xml')
-rw-r--r--config/netio/netioserver.xml18
1 files changed, 7 insertions, 11 deletions
diff --git a/config/netio/netioserver.xml b/config/netio/netioserver.xml
index da73e902..bbe32665 100644
--- a/config/netio/netioserver.xml
+++ b/config/netio/netioserver.xml
@@ -42,16 +42,11 @@
]]>
</copyright>
<name>netioserver</name>
- <version>1.27</version>
- <title>netio: Server</title>
+ <version>1.28</version>
+ <title>Diagnostics: netio: Server</title>
+ <savetext>Run netio server</savetext>
<preoutput>yes</preoutput>
<donotsave>true</donotsave>
- <menu>
- <name>netio</name>
- <tooltiptext>Run netio in client or server mode.</tooltiptext>
- <section>Diagnostics</section>
- <configfile>netio.xml</configfile>
- </menu>
<tabs>
<tab>
<text>Client</text>
@@ -69,14 +64,15 @@
<fieldname>port</fieldname>
<description>Enter the port that netio will bind to. (Default: 18767)</description>
<type>input</type>
+ <default_value>18767</default_value>
</field>
</fields>
<custom_add_php_command>
<![CDATA[
mwexec("/usr/bin/killall netio");
- if($_POST['port'] != "") {
- $netioserver_options = " -p {$_POST['port']}";
- system("/usr/local/bin/netio -s" . $netioserver_options);
+ if ($_POST['port'] != "") {
+ $port = escapeshellarg($_POST['port']);
+ system("/usr/local/bin/netio -s -p {$port}");
}
]]>
</custom_add_php_command>