Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for NAT traversal techniques #1437

Open
wants to merge 20 commits into
base: master
from
Open
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

typo (cd -> cb)

  • Loading branch information
oleiba committed Jul 1, 2018
commit a1d230be59a473876a1d5a100b44b23c37d2eac8
@@ -81,7 +81,7 @@ function NatTraversal () {

NatTraversal.prototype.portMapping = function (port, protocol, cb) {
var self = this
if (self._destroyed) return typeof cd === 'function' && cb()
if (self._destroyed) return typeof c === 'function' && cb()
if (typeof protocol === 'function') {
cb = protocol
protocol = 'tcp'
@@ -107,7 +107,7 @@ NatTraversal.prototype.portMapping = function (port, protocol, cb) {

NatTraversal.prototype.portUnMapping = function (port, cb) {
var self = this
if (self._destroyed) return typeof cd === 'function' && cb()
if (self._destroyed) return typeof cb === 'function' && cb()
arrayRemove(self._openedPorts, self._openedPorts.findIndex(o => o.port === port))

// Clear intervals
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.