Skip to content

Commit

Permalink
Merge pull request #26 from arberiii/master
Browse files Browse the repository at this point in the history
typo and changed deprecated method
  • Loading branch information
Stebalien authored Jan 13, 2020
2 parents cdec75a + 33f0983 commit 9254b00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p2p/net/nat/nat.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (nat *NAT) rmMapping(m *mapping) {
nat.mappingmu.Unlock()
}

// NewMapping attemps to construct a mapping on protocol and internal port
// NewMapping attempts to construct a mapping on protocol and internal port
// It will also periodically renew the mapping until the returned Mapping
// -- or its parent NAT -- is Closed.
//
Expand Down Expand Up @@ -183,7 +183,7 @@ func (nat *NAT) establishMapping(m *mapping) {
if err != nil || newport == 0 {
m.setExternalPort(0) // clear mapping
// TODO: log.Event
log.Warningf("failed to establish port mapping: %s", err)
log.Warnf("failed to establish port mapping: %s", err)
// we do not close if the mapping failed,
// because it may work again next time.
return
Expand Down

0 comments on commit 9254b00

Please sign in to comment.