Merge pull request #153 from cytopia/DVL-013-http-port

DVL-013 Fix #151 Use correct Httpd port in intranet
This commit is contained in:
cytopia 2017-11-21 09:02:42 +01:00 committed by GitHub
commit 3c1cf64b15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ putenv('RES_OPTIONS=retrans:1 retry:1 timeout:1 attempts:1');
$DEVILBOX_VERSION = 'v0.12';
$DEVILBOX_DATE = '2017-10-10';
$DEVILBOX_DATE = '2017-11-21';
$DEVILBOX_API_PAGE = 'devilbox-api/status.json';
//

View File

@ -123,7 +123,7 @@
//console.log(vhost);
}
}
xhttp.open('POST', 'http://'+vhost+'.<?php echo loadClass('Httpd')->getTldSuffix();?>/devilbox-api/status.json', true);
xhttp.open('POST', 'http://'+vhost+'.<?php echo loadClass('Httpd')->getTldSuffix().loadClass('Httpd')->getPort();?>/devilbox-api/status.json', true);
xhttp.send();
// Timeout to abort in 1 second