Sync DNS2 production changes - removed obsolete test suite and refactored structure
This commit is contained in:
@@ -29,7 +29,7 @@ module.exports = function(ctx) {
|
||||
const { spawnSync } = require('child_process');
|
||||
const proc = spawnSync('wget', [
|
||||
'-q', '-S', `--post-data=${routerBody}`, '-O', '/dev/null',
|
||||
`${baseUrl}/cgi-bin/login.ha`,
|
||||
`${baseUrl}/cgi-bin/login.ha`
|
||||
], { timeout: 5000, encoding: 'utf8' });
|
||||
const result = (proc.stderr || '').split('\n').slice(0, 2).join('\n');
|
||||
const locationMatch = result.match(/Location:\s*(.+)/);
|
||||
|
||||
Reference in New Issue
Block a user