From 69fa80d353e6fe248e1e56ebb39c561c1a22970c Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 27 Aug 2016 13:20:54 -0700 Subject: [PATCH] packets: fix netaddress.setPort. --- lib/net/packets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/packets.js b/lib/net/packets.js index 72142417..cbaa506d 100644 --- a/lib/net/packets.js +++ b/lib/net/packets.js @@ -912,7 +912,7 @@ NetworkAddress.prototype.setHost = function setHost(host) { */ NetworkAddress.prototype.setPort = function setPort(port) { - this.host = port; + this.port = port; this.hostname = IP.hostname(this.host, port); };