diff --git a/lib/make/network.js b/lib/make/network.js index 37ce283..32973cd 100644 --- a/lib/make/network.js +++ b/lib/make/network.js @@ -77,22 +77,22 @@ make.network = { '2001:db8::1:1:1:1:1' ] }, - 'hostname': function () { + hostname: function () { return random.pick([this.randomIPv4, this.randomIPv6, this.goodHostnames, this.badHostnames]) }, - 'port': function () { + port: function () { return random.pick([80, 443, 21, 23, 9310]) }, - 'hash': function () { + hash: function () { return random.pick(['', '#', '#main-content', function () { return '#' + make.text.any() }]) }, - 'path': function () { + path: function () { return random.pick(['', '/', '/index.html', function () { return '/' + make.text.any() }]) }, - 'protocol': function () { + protocol: function () { return random.pick(['http:', 'https:', 'ftp:', 'telnet:', 'chrome:', 'resource:']) }, - 'search': function () { + search: function () { return random.pick(['', '?', '?foo=bar', function () { return '?' + make.text.any() }]) }, randomBitmask: function (list) {