diff --git a/.reuse/dep5 b/.reuse/dep5 index ccc710a..04e1f8f 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 ab60297..0000000 --- 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 0000000..31ff787 --- /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 0000000..2071b23 --- /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 cbcdc4c..1a7f477 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 3497a44..094d7fd 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 c823887..f7fbfce 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 5077ba3..44c6a78 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 935bbbe..57fac81 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 5d1248b..231c71d 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 951e634..9696f79 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 089cfe2..884f063 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 c3049dd..92a0076 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 c3221cf..e455185 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 b03dbdb..3774cc4 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 683abd0..c09bf8b 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 864e884..9339947 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 a39cafa..76054a1 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 66633ca..8616fac 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 3742bea..c226f93 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 6ba7321..b6e57ad 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 0a53245..f33be53 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 28c7187..1a1e827 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 119ab01..58653bd 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 18cf318..e87c705 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 376c408..3972934 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 0e6b206..0e387a8 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 0cfb384..3645445 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 93b9a64..6c307f0 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 6a999ff..2b35e70 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 d5e5ead..b2ed40e 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 7cbce23..6631371 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 57b0b42..4c356f2 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 8cbef5d..322afc3 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 0889eb7..52f8479 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 7991c89..9769ae1 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 727ae5e..d203d09 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 ede2e09..b086bd8 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 3443ccb..fbf46cc 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 10730a0..f8caf5a 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 fe8dc68..0b9faaa 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 4fa78dc..f8cf3c5 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 b4de3e8..6fce60b 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 c7229ed..aa82316 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 4ee5b1b..3076b1f 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 d28970c..630103a 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 5eeb97e..5b32fbe 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 50d96ac..57df186 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 71e28e2..201aadd 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 4218299..16ac5cc 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 16f6b10..df31e0b 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 918783e..3de1f04 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 d44103a..e7e8569 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 7a8bc06..e9a7bda 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 9f9a592..b14130b 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 26c03e5..fee76a2 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 70b8ad8..d67ba83 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 ae9c625..e32acbf 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 f5ac7a9..906db32 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 9c99d54..6324cf2 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 c306143..b5be955 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 509167d..e500e57 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 97b0736..8a35bf1 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 527f8f6..2a2c528 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 5584af6..3cb4d7c 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 e47c3e7..ffdfd38 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 b4528bb..e41579a 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 c161839..158cbc3 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 d764450..d9d85dd 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 63da936..c6e3ab8 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 2d5cc5b..d8ef312 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 2e6d8a8..edbfc77 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 667c23f..79b0ff5 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 33082cd..747379e 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 af9d64c..9c010c5 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 f168c08..6fc7ed5 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 56cd62f..dfe0284 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 (