packets: fix netaddress.setPort.

This commit is contained in:
Christopher Jeffrey 2016-08-27 13:20:54 -07:00
parent 47411fc5e2
commit 69fa80d353
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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);
};