Note that isRestrictedFiltering is no longer used

This commit is contained in:
Cecylia Bocovich 2020-11-20 01:15:16 -05:00
parent 00f8f85f41
commit ece43cbfcf

View file

@ -110,6 +110,9 @@ func isRestrictedMapping(addrStr string) (bool, error) {
// Performs two tests from RFC 5780 to determine whether the filtering type // Performs two tests from RFC 5780 to determine whether the filtering type
// of the client's NAT is port-dependent. // of the client's NAT is port-dependent.
// Returns true if the filtering is port-dependent and false otherwise // 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) { func isRestrictedFiltering(addrStr string) (bool, error) {
var xorAddr stun.XORMappedAddress var xorAddr stun.XORMappedAddress