
commit ece43cbfcfc328bf0d45ee1ce5998ea295035af4 Author: Cecylia Bocovich <cohosh@torproject.org> Date: Fri Nov 20 01:15:16 2020 -0500 Note that isRestrictedFiltering is no longer used --- common/nat/nat.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/nat/nat.go b/common/nat/nat.go index 4f2780c..552ed45 100644 --- a/common/nat/nat.go +++ b/common/nat/nat.go @@ -110,6 +110,9 @@ func isRestrictedMapping(addrStr string) (bool, error) { // Performs two tests from RFC 5780 to determine whether the filtering type // of the client's NAT is port-dependent. // Returns true if the filtering is port-dependent and false otherwise +// Note: This function is no longer used because a client's NAT type is +// determined only by their mapping type, but the functionality might +// be useful in the future and remains here. func isRestrictedFiltering(addrStr string) (bool, error) { var xorAddr stun.XORMappedAddress