From bda83682899e8261509159006db6030236d8cfad Mon Sep 17 00:00:00 2001 From: Mark Vayngrib Date: Sun, 5 Jul 2015 16:44:02 -0400 Subject: [PATCH] fix example --- index.ios.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.ios.js b/index.ios.js index 2143d4f..be021f5 100644 --- a/index.ios.js +++ b/index.ios.js @@ -13,14 +13,14 @@ var { // require('./test/simple/test-dgram-bind-shared-ports') function randomPort() { - return Math.random() * 65536 | 0 + return Math.random() * 60536 | 0 + 5000 // 60536-65536 } var base64 = require('base64-js') var dgram = require('dgram') var a = dgram.createSocket('udp4') var aPort = randomPort() -a.bind(bPort, function(err) { +a.bind(aPort, function(err) { if (err) throw err console.log('address', a.address())