Browse Source

oops lol

main
forest 2 weeks ago
parent
commit
4101476399
1 changed files with 0 additions and 11 deletions
  1. +0
    -11
      nat.go

+ 0
- 11
nat.go View File

@ -79,17 +79,6 @@ func (nat *NAT) Close() error {
return nil
}
// Close shuts down all port mappings. NAT can no longer be used.
func (nat *NAT) Close() error {
nat.mappingmu.Lock()
nat.closed = true
nat.mappingmu.Unlock()
nat.ctxCancel()
nat.refCount.Wait()
return nil
}
// expose the underlying GetExternalAddress which should return the public internet address of the router
func (nat *NAT) GetExternalAddress() (net.IP, error) {
return nat.nat.GetExternalAddress()


Loading…
Cancel
Save