mirror of
https://github.com/wekan/wekan.git
synced 2025-12-25 03:40:13 +01:00
15 lines
399 B
JavaScript
15 lines
399 B
JavaScript
var request = require('../index')
|
|
, assert = require('assert')
|
|
;
|
|
|
|
request.get({
|
|
uri: 'http://www.google.com', localAddress: '1.2.3.4' // some invalid address
|
|
}, function(err, res) {
|
|
assert(!res) // asserting that no response received
|
|
})
|
|
|
|
request.get({
|
|
uri: 'http://www.google.com', localAddress: '127.0.0.1'
|
|
}, function(err, res) {
|
|
assert(!res) // asserting that no response received
|
|
})
|