aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCecylia Bocovich <cohosh@torproject.org>2020-11-20 01:15:16 -0500
committerCecylia Bocovich <cohosh@torproject.org>2020-11-20 01:15:16 -0500
commitece43cbfcfc328bf0d45ee1ce5998ea295035af4 (patch)
treebb90efee81220ea7ff8024f2be7ffa1c98d78c12
parent00f8f85f412878c2066fcb5d3f4739e50912a925 (diff)
downloadsnowflake-ece43cbfcfc328bf0d45ee1ce5998ea295035af4.tar.gz
snowflake-ece43cbfcfc328bf0d45ee1ce5998ea295035af4.zip
Note that isRestrictedFiltering is no longer used
-rw-r--r--common/nat/nat.go3
1 files changed, 3 insertions, 0 deletions
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