diff --git a/.reuse/dep5 b/.reuse/dep5 index ccc710a5..04e1f8f2 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -2,6 +2,10 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Pion Source: https://github.com/pion/ -Files: README.md AUTHORS.txt renovate.json +Files: README.md **/README.md AUTHORS.txt renovate.json go.mod go.sum Copyright: 2023 The Pion community License: MIT + +Files: testdata/fuzz/* api/*.txt +Copyright: 2023 The Pion community +License: CC0-1.0 diff --git a/LICENSE b/LICENSE deleted file mode 100644 index ab602974..00000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/LICENSE b/LICENSE new file mode 120000 index 00000000..31ff7879 --- /dev/null +++ b/LICENSE @@ -0,0 +1 @@ +LICENSES/MIT.txt \ No newline at end of file diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt new file mode 100644 index 00000000..2071b23b --- /dev/null +++ b/LICENSES/MIT.txt @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/addr.go b/addr.go index cbcdc4c9..1a7f477a 100644 --- a/addr.go +++ b/addr.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import "net" diff --git a/agent.go b/agent.go index 3497a445..094d7fde 100644 --- a/agent.go +++ b/agent.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + // Package ice implements the Interactive Connectivity Establishment (ICE) // protocol defined in rfc5245. package ice diff --git a/agent_config.go b/agent_config.go index c823887f..f7fbfcec 100644 --- a/agent_config.go +++ b/agent_config.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/agent_get_best_available_candidate_pair_test.go b/agent_get_best_available_candidate_pair_test.go index 5077ba3f..44c6a78e 100644 --- a/agent_get_best_available_candidate_pair_test.go +++ b/agent_get_best_available_candidate_pair_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js diff --git a/agent_get_best_valid_candidate_pair_test.go b/agent_get_best_valid_candidate_pair_test.go index 935bbbea..57fac815 100644 --- a/agent_get_best_valid_candidate_pair_test.go +++ b/agent_get_best_valid_candidate_pair_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js diff --git a/agent_stats.go b/agent_stats.go index 5d1248b4..231c71d0 100644 --- a/agent_stats.go +++ b/agent_stats.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/agent_test.go b/agent_test.go index 951e634f..9696f79a 100644 --- a/agent_test.go +++ b/agent_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js diff --git a/agent_udpmux_test.go b/agent_udpmux_test.go index 089cfe27..884f0639 100644 --- a/agent_udpmux_test.go +++ b/agent_udpmux_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js diff --git a/candidate.go b/candidate.go index c3049dd0..92a00768 100644 --- a/candidate.go +++ b/candidate.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/candidate_base.go b/candidate_base.go index c3221cf9..e455185d 100644 --- a/candidate_base.go +++ b/candidate_base.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/candidate_host.go b/candidate_host.go index b03dbdb5..3774cc4c 100644 --- a/candidate_host.go +++ b/candidate_host.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/candidate_peer_reflexive.go b/candidate_peer_reflexive.go index 683abd08..c09bf8b2 100644 --- a/candidate_peer_reflexive.go +++ b/candidate_peer_reflexive.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + // Package ice ... // //nolint:dupl diff --git a/candidate_relay.go b/candidate_relay.go index 864e8843..93399477 100644 --- a/candidate_relay.go +++ b/candidate_relay.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/candidate_relay_test.go b/candidate_relay_test.go index a39cafa1..76054a1b 100644 --- a/candidate_relay_test.go +++ b/candidate_relay_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js diff --git a/candidate_server_reflexive.go b/candidate_server_reflexive.go index 66633cab..8616fac1 100644 --- a/candidate_server_reflexive.go +++ b/candidate_server_reflexive.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import "net" diff --git a/candidate_server_reflexive_test.go b/candidate_server_reflexive_test.go index 3742bea3..c226f936 100644 --- a/candidate_server_reflexive_test.go +++ b/candidate_server_reflexive_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js diff --git a/candidate_test.go b/candidate_test.go index 6ba7321c..b6e57ad2 100644 --- a/candidate_test.go +++ b/candidate_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/candidatepair.go b/candidatepair.go index 0a53245c..f33be539 100644 --- a/candidatepair.go +++ b/candidatepair.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/candidatepair_state.go b/candidatepair_state.go index 28c7187e..1a1e827b 100644 --- a/candidatepair_state.go +++ b/candidatepair_state.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice // CandidatePairState represent the ICE candidate pair state diff --git a/candidatepair_test.go b/candidatepair_test.go index 119ab016..58653bd2 100644 --- a/candidatepair_test.go +++ b/candidatepair_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/candidaterelatedaddress.go b/candidaterelatedaddress.go index 18cf3183..e87c7051 100644 --- a/candidaterelatedaddress.go +++ b/candidaterelatedaddress.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import "fmt" diff --git a/candidatetype.go b/candidatetype.go index 376c4089..3972934c 100644 --- a/candidatetype.go +++ b/candidatetype.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice // CandidateType represents the type of candidate diff --git a/connectivity_vnet_test.go b/connectivity_vnet_test.go index 0e6b2068..0e387a84 100644 --- a/connectivity_vnet_test.go +++ b/connectivity_vnet_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js diff --git a/context.go b/context.go index 0cfb384f..36454450 100644 --- a/context.go +++ b/context.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/errors.go b/errors.go index 93b9a64d..6c307f09 100644 --- a/errors.go +++ b/errors.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import "errors" diff --git a/examples/ping-pong/main.go b/examples/ping-pong/main.go index 6a999ff8..2b35e70a 100644 --- a/examples/ping-pong/main.go +++ b/examples/ping-pong/main.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + // Package main implements a simple example demonstrating a Pion-to-Pion ICE connection package main diff --git a/external_ip_mapper.go b/external_ip_mapper.go index d5e5eadb..b2ed40e2 100644 --- a/external_ip_mapper.go +++ b/external_ip_mapper.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/external_ip_mapper_test.go b/external_ip_mapper_test.go index 7cbce231..66313710 100644 --- a/external_ip_mapper_test.go +++ b/external_ip_mapper_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/gather.go b/gather.go index 57b0b420..4c356f21 100644 --- a/gather.go +++ b/gather.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/gather_test.go b/gather_test.go index 8cbef5d7..322afc30 100644 --- a/gather_test.go +++ b/gather_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js diff --git a/gather_vnet_test.go b/gather_vnet_test.go index 0889eb79..52f84794 100644 --- a/gather_vnet_test.go +++ b/gather_vnet_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js diff --git a/ice.go b/ice.go index 7991c89c..9769ae12 100644 --- a/ice.go +++ b/ice.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice // ConnectionState is an enum showing the state of a ICE Connection diff --git a/ice_test.go b/ice_test.go index 727ae5e1..d203d096 100644 --- a/ice_test.go +++ b/ice_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/icecontrol.go b/icecontrol.go index ede2e09c..b086bd89 100644 --- a/icecontrol.go +++ b/icecontrol.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/icecontrol_test.go b/icecontrol_test.go index 3443ccbc..fbf46cc8 100644 --- a/icecontrol_test.go +++ b/icecontrol_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/internal/atomic/atomic.go b/internal/atomic/atomic.go index 10730a0e..f8caf5a2 100644 --- a/internal/atomic/atomic.go +++ b/internal/atomic/atomic.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + // Package atomic contains custom atomic types package atomic diff --git a/internal/fakenet/packet_conn.go b/internal/fakenet/packet_conn.go index fe8dc689..0b9faaa8 100644 --- a/internal/fakenet/packet_conn.go +++ b/internal/fakenet/packet_conn.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + // Package fakenet contains fake network abstractions package fakenet diff --git a/internal/internal.go b/internal/internal.go index 4fa78dc4..f8cf3c55 100644 --- a/internal/internal.go +++ b/internal/internal.go @@ -1,2 +1,5 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + // Package internal implements internal functionality for Pions ICE module package internal diff --git a/internal/stun/stun.go b/internal/stun/stun.go index b4de3e85..6fce60b9 100644 --- a/internal/stun/stun.go +++ b/internal/stun/stun.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + // Package stun contains ICE specific STUN code package stun diff --git a/mdns.go b/mdns.go index c7229ed5..aa823164 100644 --- a/mdns.go +++ b/mdns.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/mdns_test.go b/mdns_test.go index 4ee5b1bf..3076b1f8 100644 --- a/mdns_test.go +++ b/mdns_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js diff --git a/net.go b/net.go index d28970c0..630103a1 100644 --- a/net.go +++ b/net.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/net_test.go b/net_test.go index 5eeb97ec..5b32fbe3 100644 --- a/net_test.go +++ b/net_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/networktype.go b/networktype.go index 50d96ac9..57df1863 100644 --- a/networktype.go +++ b/networktype.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/networktype_test.go b/networktype_test.go index 71e28e23..201aadd8 100644 --- a/networktype_test.go +++ b/networktype_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/priority.go b/priority.go index 42182993..16ac5cc7 100644 --- a/priority.go +++ b/priority.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/priority_test.go b/priority_test.go index 16f6b10c..df31e0bd 100644 --- a/priority_test.go +++ b/priority_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/rand.go b/rand.go index 918783e0..3de1f040 100644 --- a/rand.go +++ b/rand.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import "github.com/pion/randutil" diff --git a/rand_test.go b/rand_test.go index d44103af..e7e85694 100644 --- a/rand_test.go +++ b/rand_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/role.go b/role.go index 7a8bc064..e9a7bda9 100644 --- a/role.go +++ b/role.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/selection.go b/selection.go index 9f9a592b..b14130b7 100644 --- a/selection.go +++ b/selection.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/stats.go b/stats.go index 26c03e5e..fee76a24 100644 --- a/stats.go +++ b/stats.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/tcp_mux.go b/tcp_mux.go index 70b8ad8c..d67ba833 100644 --- a/tcp_mux.go +++ b/tcp_mux.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/tcp_mux_multi.go b/tcp_mux_multi.go index ae9c625b..e32acbf3 100644 --- a/tcp_mux_multi.go +++ b/tcp_mux_multi.go @@ -1,6 +1,6 @@ -// Package ice ... -// -//nolint:dupl +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import "net" diff --git a/tcp_mux_multi_test.go b/tcp_mux_multi_test.go index f5ac7a92..906db32f 100644 --- a/tcp_mux_multi_test.go +++ b/tcp_mux_multi_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js diff --git a/tcp_mux_test.go b/tcp_mux_test.go index 9c99d547..6324cf29 100644 --- a/tcp_mux_test.go +++ b/tcp_mux_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/tcp_packet_conn.go b/tcp_packet_conn.go index c306143d..b5be955b 100644 --- a/tcp_packet_conn.go +++ b/tcp_packet_conn.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/tcptype.go b/tcptype.go index 509167d8..e500e57f 100644 --- a/tcptype.go +++ b/tcptype.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import "strings" diff --git a/tcptype_test.go b/tcptype_test.go index 97b0736e..8a35bf14 100644 --- a/tcptype_test.go +++ b/tcptype_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/transport.go b/transport.go index 527f8f65..2a2c528a 100644 --- a/transport.go +++ b/transport.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/transport_test.go b/transport_test.go index 5584af68..3cb4d7cc 100644 --- a/transport_test.go +++ b/transport_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js diff --git a/transport_vnet_test.go b/transport_vnet_test.go index e47c3e71..ffdfd385 100644 --- a/transport_vnet_test.go +++ b/transport_vnet_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js diff --git a/udp_mux.go b/udp_mux.go index b4528bb7..e41579a9 100644 --- a/udp_mux.go +++ b/udp_mux.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/udp_mux_multi.go b/udp_mux_multi.go index c1618399..158cbc37 100644 --- a/udp_mux_multi.go +++ b/udp_mux_multi.go @@ -1,6 +1,6 @@ -// Package ice ... -// -//nolint:dupl +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/udp_mux_multi_test.go b/udp_mux_multi_test.go index d7644502..d9d85ddb 100644 --- a/udp_mux_multi_test.go +++ b/udp_mux_multi_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js diff --git a/udp_mux_test.go b/udp_mux_test.go index 63da9360..c6e3ab8d 100644 --- a/udp_mux_test.go +++ b/udp_mux_test.go @@ -1,12 +1,14 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js package ice -//nolint:gosec import ( "crypto/rand" - "crypto/sha1" + "crypto/sha1" //nolint:gosec "encoding/binary" "net" "sync" diff --git a/udp_mux_universal.go b/udp_mux_universal.go index 2d5cc5b5..d8ef312b 100644 --- a/udp_mux_universal.go +++ b/udp_mux_universal.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/udp_mux_universal_test.go b/udp_mux_universal_test.go index 2e6d8a85..edbfc77e 100644 --- a/udp_mux_universal_test.go +++ b/udp_mux_universal_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + //go:build !js // +build !js diff --git a/udp_muxed_conn.go b/udp_muxed_conn.go index 667c23f2..79b0ff52 100644 --- a/udp_muxed_conn.go +++ b/udp_muxed_conn.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/url.go b/url.go index 33082cd6..747379ea 100644 --- a/url.go +++ b/url.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/url_test.go b/url_test.go index af9d64c6..9c010c54 100644 --- a/url_test.go +++ b/url_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import ( diff --git a/usecandidate.go b/usecandidate.go index f168c08e..6fc7ed50 100644 --- a/usecandidate.go +++ b/usecandidate.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import "github.com/pion/stun" diff --git a/usecandidate_test.go b/usecandidate_test.go index 56cd62f7..dfe02848 100644 --- a/usecandidate_test.go +++ b/usecandidate_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 The Pion community +// SPDX-License-Identifier: MIT + package ice import (