Made sure the socks5 changes went through properly and fixed a search.jade bug.
This commit is contained in:
parent
f7e5eed37b
commit
fce8691aed
|
@ -1,3 +1,3 @@
|
|||
//- search.jade
|
||||
input.search(type="text", name="searchterm", placeholder="Je naam, id, klassennaam, docentencode, lokaalcode", value=(match.first_name || match.name) + '\'s rooster')
|
||||
input.search(type="text", name="searchterm", placeholder="Je naam, id, klassennaam, docentencode, lokaalcode", value=match ? ((match.first_name || match.name) + '\'s rooster') : '')
|
||||
button.search Zoeken
|
||||
|
|
|
@ -13,14 +13,12 @@ function schedule(req, res, next) {
|
|||
}
|
||||
|
||||
//Function for getting the page via http.
|
||||
function get(url, callback) {
|
||||
|
||||
var options = url.parse(url);
|
||||
function get(get_url, callback) {
|
||||
|
||||
var options = url.parse(get_url);
|
||||
options.socksPort = config().tor_port;
|
||||
options.socksHost = config().tor_host;
|
||||
|
||||
console.log(options);
|
||||
|
||||
http.get(options, function (res) {
|
||||
var _download = '';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
var http = require('socsk5-http-client');
|
||||
var http = require('socks5-http-client');
|
||||
var cheerio = require('cheerio');
|
||||
var iconv = require('iconv-lite');
|
||||
var mongodb = require('mongodb').MongoClient;
|
||||
|
|
Loading…
Reference in a new issue