| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5afdc1f commit 5f92d2f
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -369,7 +369,7 @@ Socket.prototype.bind = function(port_, address_ /* , callback */) { | |||
| 369 | 369 | }; | |
| 370 | 370 | ||
| 371 | 371 | Socket.prototype.connect = function(port, address, callback) { | |
| 372 | - port = validatePort(port, 'Port', { allowZero: false }); | ||
| 372 | + port = validatePort(port, 'Port', false); | ||
| 373 | 373 | if (typeof address === 'function') { | |
| 374 | 374 | callback = address; | |
| 375 | 375 | address = ''; | |
@@ -626,7 +626,7 @@ Socket.prototype.send = function(buffer, | |||
| 626 | 626 | } | |
| 627 | 627 | ||
| 628 | 628 | if (!connected) | |
| 629 | - port = validatePort(port, 'Port', { allowZero: false }); | ||
| 629 | + port = validatePort(port, 'Port', false); | ||
| 630 | 630 | ||
| 631 | 631 | // Normalize callback so it's either a function or undefined but not anything | |
| 632 | 632 | // else. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments