update port

This commit is contained in:
dmacias72 2016-11-06 11:29:48 -07:00
parent a1bbd6705b
commit 4e934d6f46
3 changed files with 5 additions and 5 deletions

View File

@ -39,7 +39,7 @@ This Plugin installs libvirt wake on lan for unRaid 6.1 All dependencies are in
<INLINE>
<![CDATA[
DAEMON="disable"
PORT="8888"
PORT="8448"
]]>
</INLINE>
</FILE>

View File

@ -19,7 +19,7 @@ Enable unGit Server (<?=$gversion;?>):
> Select Yes to enable, No to disable.
Port:
: <input id="PORT" name="PORT" type="text" class="g-run" style="width:25px" maxlength="4" value="<?=$gport;?>" title="port must be 0-65535, default is 8888" placeholder="Port" >
: <input id="PORT" name="PORT" type="text" class="g-run" style="width:25px" maxlength="4" value="<?=$gport;?>" title="port must be 0-65535, default is 8448" placeholder="Port" >
> Enter Port number of your unGit Server
@ -70,7 +70,7 @@ $(function(){
function resetDATA(form) {
form.PORT.value = 8888;
form.PORT.value = 8448;
}
function checkRUNNING(form) {
@ -92,7 +92,7 @@ function checkRUNNING(form) {
function verifyDATA(form) {
if (form.PORT.value < 0 || form.PORT.value > 65535){
form.PORT.value = 8888;
form.PORT.value = 8448;
}
form.DAEMON.value = form.DAEMON.value.replace(/ /g,"_");
}

View File

@ -7,7 +7,7 @@ $gdaemon = isset($gcfg['DAEMON']) ? $gcfg['DAEMON'] : "disable";
//$qipaddr = preg_match('/^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:[.](?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$/', $ipmi_cfg['host']) ?
// $qcfg['host'] : $var['IPADDR'];
$gipaddr = 'localhost';
$gport = (isset($gcfg['port']) && is_numeric($gcfg['port']) && $gcfg['port'] > 0 && $gcfg['port'] < 65535 ) ? $gcfg['port'] : 8888;
$gport = (isset($gcfg['port']) && is_numeric($gcfg['port']) && $gcfg['port'] > 0 && $gcfg['port'] < 65535 ) ? $gcfg['port'] : 8448;
$gversion = shell_exec( '/usr/local/emhttp/plugins/ungit/node_modules/ungit/bin/ungit -v' );
//check running status