packets: fix netaddress.setPort.
This commit is contained in:
parent
47411fc5e2
commit
69fa80d353
@ -912,7 +912,7 @@ NetworkAddress.prototype.setHost = function setHost(host) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
NetworkAddress.prototype.setPort = function setPort(port) {
|
NetworkAddress.prototype.setPort = function setPort(port) {
|
||||||
this.host = port;
|
this.port = port;
|
||||||
this.hostname = IP.hostname(this.host, port);
|
this.hostname = IP.hostname(this.host, port);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user