diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 24c5ca09b..b68d0b223 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,8 +23,8 @@ repos: entry: gofmt -w . language: golang types: [go] - # - id: check-x - # name: Check X - # entry: ./bin/check-x.sh - # language: script - # files: \.x$ + - id: check-license-signature + name: license-signature-automation + entry: ./hack/maintenance/append_license_signature.sh + language: script + files: \.go$ diff --git a/Makefile b/Makefile index 78df519ce..ecc34878f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # # SPDX-License-Identifier: AGPL-3.0-only -# Copyright (c) 2022-2023, daeuniverse Organization +# Copyright (c) 2022-2024, daeuniverse Organization # # The development version of clang is distributed as the 'clang' binary, diff --git a/cmd/cmd.go b/cmd/cmd.go index 09874f65d..610900ca7 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -1,3 +1,8 @@ +/* +* SPDX-License-Identifier: AGPL-3.0-only +* Copyright (c) 2022-2024, daeuniverse Organization + */ + package cmd import ( @@ -31,7 +36,7 @@ func init() { rootCmd.Version = strings.Join([]string{ Version, fmt.Sprintf("go runtime %v %v/%v", runtime.Version(), runtime.GOOS, runtime.GOARCH), - "Copyright (c) 2023 dae", + "Copyright (c) 2022-2024 dae", "License GNU AGPLv3 ", }, "\n") } diff --git a/cmd/export.go b/cmd/export.go index ada148890..14c9dc1ac 100644 --- a/cmd/export.go +++ b/cmd/export.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package cmd diff --git a/cmd/honk.go b/cmd/honk.go index 5b70c5622..e785a0dd6 100644 --- a/cmd/honk.go +++ b/cmd/honk.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package cmd diff --git a/cmd/internal/su.go b/cmd/internal/su.go index 98a6dc23b..1151c3bc4 100644 --- a/cmd/internal/su.go +++ b/cmd/internal/su.go @@ -1,3 +1,8 @@ +/* +* SPDX-License-Identifier: AGPL-3.0-only +* Copyright (c) 2022-2024, daeuniverse Organization + */ + package internal import ( diff --git a/cmd/reload.go b/cmd/reload.go index 7e2f7fd94..0eadd6d45 100644 --- a/cmd/reload.go +++ b/cmd/reload.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package cmd diff --git a/cmd/run.go b/cmd/run.go index 0dbcdeb08..c56d42220 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -1,3 +1,8 @@ +/* +* SPDX-License-Identifier: AGPL-3.0-only +* Copyright (c) 2022-2024, daeuniverse Organization + */ + package cmd import ( diff --git a/cmd/suspend.go b/cmd/suspend.go index b5ff42314..8d977dfa9 100644 --- a/cmd/suspend.go +++ b/cmd/suspend.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package cmd diff --git a/cmd/validate.go b/cmd/validate.go index cbe173d32..ba9d6d2d9 100644 --- a/cmd/validate.go +++ b/cmd/validate.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package cmd diff --git a/common/assets/assets.go b/common/assets/assets.go index 15e535537..f86b0bd50 100644 --- a/common/assets/assets.go +++ b/common/assets/assets.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package assets diff --git a/common/bitlist/bitlist.go b/common/bitlist/bitlist.go index 312bbe57d..489b3ac4b 100644 --- a/common/bitlist/bitlist.go +++ b/common/bitlist/bitlist.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package bitlist diff --git a/common/bitlist/bitlist_test.go b/common/bitlist/bitlist_test.go index 430dfd6a2..10872f963 100644 --- a/common/bitlist/bitlist_test.go +++ b/common/bitlist/bitlist_test.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package bitlist diff --git a/common/consts/app.go b/common/consts/app.go index 1d4df53d8..15820d51d 100644 --- a/common/consts/app.go +++ b/common/consts/app.go @@ -1,3 +1,8 @@ +/* +* SPDX-License-Identifier: AGPL-3.0-only +* Copyright (c) 2022-2024, daeuniverse Organization + */ + package consts var ( diff --git a/common/consts/control.go b/common/consts/control.go index 758442925..228023e12 100644 --- a/common/consts/control.go +++ b/common/consts/control.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package consts diff --git a/common/consts/dialer.go b/common/consts/dialer.go index 7282871ed..c5c4e5690 100644 --- a/common/consts/dialer.go +++ b/common/consts/dialer.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package consts diff --git a/common/consts/dns.go b/common/consts/dns.go index 42e597b89..004f2be33 100644 --- a/common/consts/dns.go +++ b/common/consts/dns.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package consts diff --git a/common/consts/ebpf.go b/common/consts/ebpf.go index cd02bb4c4..e95175d1a 100644 --- a/common/consts/ebpf.go +++ b/common/consts/ebpf.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package consts diff --git a/common/consts/net.go b/common/consts/net.go index 43e3c963f..cdb3dc334 100644 --- a/common/consts/net.go +++ b/common/consts/net.go @@ -1,3 +1,8 @@ +/* +* SPDX-License-Identifier: AGPL-3.0-only +* Copyright (c) 2022-2024, daeuniverse Organization + */ + package consts const ( diff --git a/common/consts/routing.go b/common/consts/routing.go index 786e1829b..79cd2f39e 100644 --- a/common/consts/routing.go +++ b/common/consts/routing.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package consts diff --git a/common/debug.go b/common/debug.go index 6cc5bb5fb..d1e20561b 100644 --- a/common/debug.go +++ b/common/debug.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package common diff --git a/common/json/fuzzy_decoder.go b/common/json/fuzzy_decoder.go index 586714662..fab59c9a5 100644 --- a/common/json/fuzzy_decoder.go +++ b/common/json/fuzzy_decoder.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package json diff --git a/common/netutils/context_dialer.go b/common/netutils/context_dialer.go index 30116cea6..99af3e6e0 100644 --- a/common/netutils/context_dialer.go +++ b/common/netutils/context_dialer.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package netutils diff --git a/common/netutils/dns.go b/common/netutils/dns.go index a9b18d049..58a770118 100644 --- a/common/netutils/dns.go +++ b/common/netutils/dns.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package netutils diff --git a/common/netutils/dnsconfig_unix.go b/common/netutils/dnsconfig_unix.go index 66e50f005..b382fd232 100644 --- a/common/netutils/dnsconfig_unix.go +++ b/common/netutils/dnsconfig_unix.go @@ -1,11 +1,16 @@ +//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris + +/* +* SPDX-License-Identifier: AGPL-3.0-only +* Copyright (c) 2022-2024, daeuniverse Organization + */ + // Modified from go1.18/src/net/dnsconfig_unix.go // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris - // Read system DNS config from /etc/resolv.conf package netutils diff --git a/common/netutils/ip46.go b/common/netutils/ip46.go index 3425dc62a..7cf13b287 100644 --- a/common/netutils/ip46.go +++ b/common/netutils/ip46.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package netutils diff --git a/common/netutils/ip46_test.go b/common/netutils/ip46_test.go index 6d416bd40..1f592eabd 100644 --- a/common/netutils/ip46_test.go +++ b/common/netutils/ip46_test.go @@ -1,3 +1,8 @@ +/* +* SPDX-License-Identifier: AGPL-3.0-only +* Copyright (c) 2022-2024, daeuniverse Organization + */ + package netutils import ( diff --git a/common/netutils/url.go b/common/netutils/url.go index 1d8572fa8..97b1ba658 100644 --- a/common/netutils/url.go +++ b/common/netutils/url.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package netutils diff --git a/common/subscription/subscription.go b/common/subscription/subscription.go index b48d16abd..4af6e3474 100644 --- a/common/subscription/subscription.go +++ b/common/subscription/subscription.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package subscription diff --git a/common/utils.go b/common/utils.go index 2fb438a83..298a527aa 100644 --- a/common/utils.go +++ b/common/utils.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package common diff --git a/component/dns/dns.go b/component/dns/dns.go index 973b248ec..b6917e3ce 100644 --- a/component/dns/dns.go +++ b/component/dns/dns.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package dns diff --git a/component/dns/function_parser.go b/component/dns/function_parser.go index a025c9c9b..7524baeaa 100644 --- a/component/dns/function_parser.go +++ b/component/dns/function_parser.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package dns diff --git a/component/dns/request_routing.go b/component/dns/request_routing.go index b2334d98f..4e64a077a 100644 --- a/component/dns/request_routing.go +++ b/component/dns/request_routing.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package dns diff --git a/component/dns/response_routing.go b/component/dns/response_routing.go index 25382cda2..bcae1483d 100644 --- a/component/dns/response_routing.go +++ b/component/dns/response_routing.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package dns diff --git a/component/dns/upstream.go b/component/dns/upstream.go index 2595707ca..5bb0c1de1 100644 --- a/component/dns/upstream.go +++ b/component/dns/upstream.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package dns diff --git a/component/outbound/dialer/alive_dialer_set.go b/component/outbound/dialer/alive_dialer_set.go index 548b233ef..a79bafde9 100644 --- a/component/outbound/dialer/alive_dialer_set.go +++ b/component/outbound/dialer/alive_dialer_set.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package dialer diff --git a/component/outbound/dialer/annotation.go b/component/outbound/dialer/annotation.go index ef6153601..72e2d2022 100644 --- a/component/outbound/dialer/annotation.go +++ b/component/outbound/dialer/annotation.go @@ -1,3 +1,8 @@ +/* +* SPDX-License-Identifier: AGPL-3.0-only +* Copyright (c) 2022-2024, daeuniverse Organization + */ + package dialer import ( diff --git a/component/outbound/dialer/block.go b/component/outbound/dialer/block.go index 9a5098fd3..a3a4df8a5 100644 --- a/component/outbound/dialer/block.go +++ b/component/outbound/dialer/block.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package dialer diff --git a/component/outbound/dialer/connectivity_check.go b/component/outbound/dialer/connectivity_check.go index 3e8622e4b..14b6f2b6b 100644 --- a/component/outbound/dialer/connectivity_check.go +++ b/component/outbound/dialer/connectivity_check.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package dialer diff --git a/component/outbound/dialer/dialer.go b/component/outbound/dialer/dialer.go index 65a95d4a4..1a8486940 100644 --- a/component/outbound/dialer/dialer.go +++ b/component/outbound/dialer/dialer.go @@ -1,3 +1,8 @@ +/* +* SPDX-License-Identifier: AGPL-3.0-only +* Copyright (c) 2022-2024, daeuniverse Organization + */ + package dialer import ( diff --git a/component/outbound/dialer/direct.go b/component/outbound/dialer/direct.go index b0aeb190d..99a3d102d 100644 --- a/component/outbound/dialer/direct.go +++ b/component/outbound/dialer/direct.go @@ -1,3 +1,8 @@ +/* +* SPDX-License-Identifier: AGPL-3.0-only +* Copyright (c) 2022-2024, daeuniverse Organization + */ + package dialer import ( diff --git a/component/outbound/dialer/latencies_n.go b/component/outbound/dialer/latencies_n.go index df6db3ce2..2b6fb9f02 100644 --- a/component/outbound/dialer/latencies_n.go +++ b/component/outbound/dialer/latencies_n.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package dialer diff --git a/component/outbound/dialer/register.go b/component/outbound/dialer/register.go index 6d94d5208..40b511755 100644 --- a/component/outbound/dialer/register.go +++ b/component/outbound/dialer/register.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package dialer diff --git a/component/outbound/dialer/sockopt.go b/component/outbound/dialer/sockopt.go index ac9b610de..1ebf22a1d 100644 --- a/component/outbound/dialer/sockopt.go +++ b/component/outbound/dialer/sockopt.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package dialer diff --git a/component/outbound/dialer/utils.go b/component/outbound/dialer/utils.go index 0a6f412a1..4b436d7ef 100644 --- a/component/outbound/dialer/utils.go +++ b/component/outbound/dialer/utils.go @@ -1,3 +1,8 @@ +/* +* SPDX-License-Identifier: AGPL-3.0-only +* Copyright (c) 2022-2024, daeuniverse Organization + */ + package dialer import "time" diff --git a/component/outbound/dialer_group.go b/component/outbound/dialer_group.go index d1bc0aae8..fecb17e1c 100644 --- a/component/outbound/dialer_group.go +++ b/component/outbound/dialer_group.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package outbound diff --git a/component/outbound/dialer_group_test.go b/component/outbound/dialer_group_test.go index 76b5b1011..4268cc236 100644 --- a/component/outbound/dialer_group_test.go +++ b/component/outbound/dialer_group_test.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package outbound diff --git a/component/outbound/dialer_selection_policy.go b/component/outbound/dialer_selection_policy.go index 78e2095ff..30b310cce 100644 --- a/component/outbound/dialer_selection_policy.go +++ b/component/outbound/dialer_selection_policy.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package outbound diff --git a/component/outbound/filter.go b/component/outbound/filter.go index 552a1be47..0decc2beb 100644 --- a/component/outbound/filter.go +++ b/component/outbound/filter.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package outbound diff --git a/component/outbound/outbound.go b/component/outbound/outbound.go index d20bff048..97072ae37 100644 --- a/component/outbound/outbound.go +++ b/component/outbound/outbound.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package outbound diff --git a/component/routing/domain_matcher.go b/component/routing/domain_matcher.go index 57c3a93a8..e0303e1fc 100644 --- a/component/routing/domain_matcher.go +++ b/component/routing/domain_matcher.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package routing diff --git a/component/routing/domain_matcher/ahocorasick_slimtrie.go b/component/routing/domain_matcher/ahocorasick_slimtrie.go index dd9b908ba..3a5349c80 100644 --- a/component/routing/domain_matcher/ahocorasick_slimtrie.go +++ b/component/routing/domain_matcher/ahocorasick_slimtrie.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package domain_matcher diff --git a/component/routing/domain_matcher/ahocorasick_slimtrie_test.go b/component/routing/domain_matcher/ahocorasick_slimtrie_test.go index 4824da7c7..49017dbc8 100644 --- a/component/routing/domain_matcher/ahocorasick_slimtrie_test.go +++ b/component/routing/domain_matcher/ahocorasick_slimtrie_test.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package domain_matcher diff --git a/component/routing/domain_matcher/benchmark_test.go b/component/routing/domain_matcher/benchmark_test.go index ae8da48eb..f69425a3a 100644 --- a/component/routing/domain_matcher/benchmark_test.go +++ b/component/routing/domain_matcher/benchmark_test.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package domain_matcher diff --git a/component/routing/domain_matcher/bruteforce.go b/component/routing/domain_matcher/bruteforce.go index c6d372ca6..27f75a3e9 100644 --- a/component/routing/domain_matcher/bruteforce.go +++ b/component/routing/domain_matcher/bruteforce.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package domain_matcher diff --git a/component/routing/domain_matcher/go_regexp_nfa.go b/component/routing/domain_matcher/go_regexp_nfa.go index faa4eaa63..bd2ad6be8 100644 --- a/component/routing/domain_matcher/go_regexp_nfa.go +++ b/component/routing/domain_matcher/go_regexp_nfa.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package domain_matcher diff --git a/component/routing/function_parser.go b/component/routing/function_parser.go index 9ab3970e3..d27c78223 100644 --- a/component/routing/function_parser.go +++ b/component/routing/function_parser.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package routing diff --git a/component/routing/matcher_builder.go b/component/routing/matcher_builder.go index 135b872fb..18ad6d4fc 100644 --- a/component/routing/matcher_builder.go +++ b/component/routing/matcher_builder.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package routing diff --git a/component/routing/optimizer.go b/component/routing/optimizer.go index c0de77921..02e34844e 100644 --- a/component/routing/optimizer.go +++ b/component/routing/optimizer.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package routing diff --git a/component/sniffing/conn_sniffer.go b/component/sniffing/conn_sniffer.go index dce4a7cc8..449ff0ab6 100644 --- a/component/sniffing/conn_sniffer.go +++ b/component/sniffing/conn_sniffer.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package sniffing diff --git a/component/sniffing/http.go b/component/sniffing/http.go index b523bfc8a..10ef49400 100644 --- a/component/sniffing/http.go +++ b/component/sniffing/http.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package sniffing diff --git a/component/sniffing/internal/quicutils/binary.go b/component/sniffing/internal/quicutils/binary.go index 2fd205c66..e7ee8dd8e 100644 --- a/component/sniffing/internal/quicutils/binary.go +++ b/component/sniffing/internal/quicutils/binary.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package quicutils diff --git a/component/sniffing/internal/quicutils/cipher.go b/component/sniffing/internal/quicutils/cipher.go index 7c5ed15cc..cc8f9f662 100644 --- a/component/sniffing/internal/quicutils/cipher.go +++ b/component/sniffing/internal/quicutils/cipher.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package quicutils diff --git a/component/sniffing/internal/quicutils/cipher_test.go b/component/sniffing/internal/quicutils/cipher_test.go index 5ae31923a..fb6f88ea5 100644 --- a/component/sniffing/internal/quicutils/cipher_test.go +++ b/component/sniffing/internal/quicutils/cipher_test.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package quicutils diff --git a/component/sniffing/internal/quicutils/hkdf.go b/component/sniffing/internal/quicutils/hkdf.go index 312125b7d..648d2aaff 100644 --- a/component/sniffing/internal/quicutils/hkdf.go +++ b/component/sniffing/internal/quicutils/hkdf.go @@ -1,3 +1,8 @@ +/* +* SPDX-License-Identifier: AGPL-3.0-only +* Copyright (c) 2022-2024, daeuniverse Organization + */ + // Modified from https://github.com/quic-go/quic-go/blob/58cedf7a4f/internal/handshake/hkdf.go package quicutils diff --git a/component/sniffing/internal/quicutils/relocation.go b/component/sniffing/internal/quicutils/relocation.go index 297d590ba..752d8ee42 100644 --- a/component/sniffing/internal/quicutils/relocation.go +++ b/component/sniffing/internal/quicutils/relocation.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package quicutils diff --git a/component/sniffing/internal/quicutils/version.go b/component/sniffing/internal/quicutils/version.go index 1cdc13819..5c140729c 100644 --- a/component/sniffing/internal/quicutils/version.go +++ b/component/sniffing/internal/quicutils/version.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package quicutils diff --git a/component/sniffing/quic.go b/component/sniffing/quic.go index 49f5c2834..91fef6786 100644 --- a/component/sniffing/quic.go +++ b/component/sniffing/quic.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package sniffing diff --git a/component/sniffing/quic_bench_test.go b/component/sniffing/quic_bench_test.go index bacb66e8a..910bdf62d 100644 --- a/component/sniffing/quic_bench_test.go +++ b/component/sniffing/quic_bench_test.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package sniffing diff --git a/component/sniffing/quic_test.go b/component/sniffing/quic_test.go index 3e921fc85..3627d9ecb 100644 --- a/component/sniffing/quic_test.go +++ b/component/sniffing/quic_test.go @@ -1,3 +1,8 @@ +/* +* SPDX-License-Identifier: AGPL-3.0-only +* Copyright (c) 2022-2024, daeuniverse Organization + */ + package sniffing import ( diff --git a/component/sniffing/sniffer.go b/component/sniffing/sniffer.go index 3a06c0379..5b66a77dd 100644 --- a/component/sniffing/sniffer.go +++ b/component/sniffing/sniffer.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package sniffing diff --git a/component/sniffing/sniffing.go b/component/sniffing/sniffing.go index 9803b284e..937707cfa 100644 --- a/component/sniffing/sniffing.go +++ b/component/sniffing/sniffing.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package sniffing diff --git a/component/sniffing/sniffing_bench_test.go b/component/sniffing/sniffing_bench_test.go index b7c8b8473..639b9f23c 100644 --- a/component/sniffing/sniffing_bench_test.go +++ b/component/sniffing/sniffing_bench_test.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package sniffing diff --git a/component/sniffing/tls.go b/component/sniffing/tls.go index c23a726bc..f06fd0faf 100644 --- a/component/sniffing/tls.go +++ b/component/sniffing/tls.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package sniffing diff --git a/component/sniffing/tls_test.go b/component/sniffing/tls_test.go index 429a58737..dc101935d 100644 --- a/component/sniffing/tls_test.go +++ b/component/sniffing/tls_test.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package sniffing diff --git a/config/config.go b/config/config.go index 687a25989..72afad810 100644 --- a/config/config.go +++ b/config/config.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package config diff --git a/config/config_merger.go b/config/config_merger.go index f2158d2a4..324354a71 100644 --- a/config/config_merger.go +++ b/config/config_merger.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package config diff --git a/config/desc.go b/config/desc.go index 6c0676662..fad148a4e 100644 --- a/config/desc.go +++ b/config/desc.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package config diff --git a/config/marshal.go b/config/marshal.go index ab1faf9ec..2e4795882 100644 --- a/config/marshal.go +++ b/config/marshal.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package config diff --git a/config/marshal_test.go b/config/marshal_test.go index 83c16ab19..631e13a44 100644 --- a/config/marshal_test.go +++ b/config/marshal_test.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package config diff --git a/config/outline.go b/config/outline.go index 9e4b878ec..a9630906d 100644 --- a/config/outline.go +++ b/config/outline.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package config diff --git a/config/outline_test.go b/config/outline_test.go index de2ed3faa..718790f91 100644 --- a/config/outline_test.go +++ b/config/outline_test.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package config diff --git a/config/parser.go b/config/parser.go index cb04c7e16..722ce15c2 100644 --- a/config/parser.go +++ b/config/parser.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package config diff --git a/config/patch.go b/config/patch.go index 5e937a5b4..9e05e9357 100644 --- a/config/patch.go +++ b/config/patch.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package config diff --git a/control/addr.go b/control/addr.go index 5561e7b4e..427443932 100644 --- a/control/addr.go +++ b/control/addr.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package control diff --git a/control/anyfrom_pool.go b/control/anyfrom_pool.go index c92e4ff70..f7206178d 100644 --- a/control/anyfrom_pool.go +++ b/control/anyfrom_pool.go @@ -1,3 +1,8 @@ +/* +* SPDX-License-Identifier: AGPL-3.0-only +* Copyright (c) 2022-2024, daeuniverse Organization + */ + package control import ( diff --git a/control/bpf_subobjects.go b/control/bpf_subobjects.go index c84120150..5245bad4a 100644 --- a/control/bpf_subobjects.go +++ b/control/bpf_subobjects.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package control diff --git a/control/bpf_utils.go b/control/bpf_utils.go index 101c13129..40d99f5a2 100644 --- a/control/bpf_utils.go +++ b/control/bpf_utils.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package control diff --git a/control/connectivity.go b/control/connectivity.go index acc88ef70..afe63261f 100644 --- a/control/connectivity.go +++ b/control/connectivity.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package control diff --git a/control/control.go b/control/control.go index 5b65e47d1..c27498e08 100644 --- a/control/control.go +++ b/control/control.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package control diff --git a/control/control_plane.go b/control/control_plane.go index 29885d361..06d00cb53 100644 --- a/control/control_plane.go +++ b/control/control_plane.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package control diff --git a/control/control_plane_core.go b/control/control_plane_core.go index b70b2acd0..e4b30eda4 100644 --- a/control/control_plane_core.go +++ b/control/control_plane_core.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package control diff --git a/control/dns_cache.go b/control/dns_cache.go index a88c25deb..97005acc2 100644 --- a/control/dns_cache.go +++ b/control/dns_cache.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package control diff --git a/control/dns_control.go b/control/dns_control.go index 4ddcde931..fab4e1d2a 100644 --- a/control/dns_control.go +++ b/control/dns_control.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package control diff --git a/control/dns_utils.go b/control/dns_utils.go index 3c449b962..806697249 100644 --- a/control/dns_utils.go +++ b/control/dns_utils.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package control diff --git a/control/kern/tproxy.c b/control/kern/tproxy.c index 0383607ee..d1025b5be 100644 --- a/control/kern/tproxy.c +++ b/control/kern/tproxy.c @@ -1,7 +1,7 @@ // +build ignore /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ #include "headers/errno-base.h" diff --git a/control/packet_sniffer_pool.go b/control/packet_sniffer_pool.go index a1e51f63b..56319f24d 100644 --- a/control/packet_sniffer_pool.go +++ b/control/packet_sniffer_pool.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package control diff --git a/control/packet_sniffer_pool_test.go b/control/packet_sniffer_pool_test.go index d6b4b64ab..55300b575 100644 --- a/control/packet_sniffer_pool_test.go +++ b/control/packet_sniffer_pool_test.go @@ -1,3 +1,8 @@ +/* +* SPDX-License-Identifier: AGPL-3.0-only +* Copyright (c) 2022-2024, daeuniverse Organization + */ + package control import ( diff --git a/control/routing_matcher_builder.go b/control/routing_matcher_builder.go index 85b8a1238..c7036e1e0 100644 --- a/control/routing_matcher_builder.go +++ b/control/routing_matcher_builder.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package control diff --git a/control/routing_matcher_userspace.go b/control/routing_matcher_userspace.go index 7250bc114..2fd1e9f30 100644 --- a/control/routing_matcher_userspace.go +++ b/control/routing_matcher_userspace.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package control diff --git a/control/tcp.go b/control/tcp.go index 85c0346f3..c429db670 100644 --- a/control/tcp.go +++ b/control/tcp.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package control diff --git a/control/udp.go b/control/udp.go index 36fd4ad97..cefa7c033 100644 --- a/control/udp.go +++ b/control/udp.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package control diff --git a/control/udp_endpoint_pool.go b/control/udp_endpoint_pool.go index a0c875399..6908173e7 100644 --- a/control/udp_endpoint_pool.go +++ b/control/udp_endpoint_pool.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package control diff --git a/control/utils.go b/control/utils.go index 070127242..8a99edbfa 100644 --- a/control/utils.go +++ b/control/utils.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package control diff --git a/hack/maintenance/append_license_signature.sh b/hack/maintenance/append_license_signature.sh new file mode 100755 index 000000000..f984e3b91 --- /dev/null +++ b/hack/maintenance/append_license_signature.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +# Command to obtain the list of target files +files=$(rg -F 'SPDX-License-Identifier: AGPL-3.0-only' --files-without-match --glob '*.go' --glob '!pkg/ebpf_internal/**/*.go' --glob '!pkg/geodata/**/*.go' .) + +# Insert the specified lines to the top of each target file +insert_lines() { + local file="$1" + if [ -f "$file" ]; then + # Inserting lines at the beginning of the file + { + echo "/*" + echo "* SPDX-License-Identifier: AGPL-3.0-only" + echo "* Copyright (c) 2022-2024, daeuniverse Organization " + echo "*/" + echo + cat "$file" + } >tempfile && mv tempfile "$file" + echo "Lines inserted into $file" + else + echo "File not found: $file" + fi +} + +# Loop through each file and insert lines to the top +while IFS= read -r file; do + insert_lines "$file" +done <<<"$files" diff --git a/hack/maintenance/extend_license_signature_period.sh b/hack/maintenance/extend_license_signature_period.sh new file mode 100644 index 000000000..c0689017d --- /dev/null +++ b/hack/maintenance/extend_license_signature_period.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +rg -F 'Copyright (c) 2022-2023' --files-with-matches . | xargs sed -i 's/Copyright (c) 2022-2023/Copyright (c) 2022-2024'/g +rg -F 'Copyright (c) 2023' --files-with-matches . | xargs sed -i 's/Copyright (c) 2022-2023/Copyright (c) 2022-2024'/g diff --git a/main.go b/main.go index ed5de8ec8..c30c9939e 100644 --- a/main.go +++ b/main.go @@ -2,7 +2,7 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package main diff --git a/pkg/anybuffer/anybuffer.go b/pkg/anybuffer/anybuffer.go index b69f5f18f..f894451a0 100644 --- a/pkg/anybuffer/anybuffer.go +++ b/pkg/anybuffer/anybuffer.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package anybuffer diff --git a/pkg/config_parser/config_parser.go b/pkg/config_parser/config_parser.go index c04b10c9a..de8f41a1e 100644 --- a/pkg/config_parser/config_parser.go +++ b/pkg/config_parser/config_parser.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package config_parser diff --git a/pkg/config_parser/config_parser_test.go b/pkg/config_parser/config_parser_test.go index 4995ccc90..592aae304 100644 --- a/pkg/config_parser/config_parser_test.go +++ b/pkg/config_parser/config_parser_test.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package config_parser diff --git a/pkg/config_parser/error.go b/pkg/config_parser/error.go index d53bae695..f1802f816 100644 --- a/pkg/config_parser/error.go +++ b/pkg/config_parser/error.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package config_parser diff --git a/pkg/config_parser/section.go b/pkg/config_parser/section.go index dbe08f4f2..528485630 100644 --- a/pkg/config_parser/section.go +++ b/pkg/config_parser/section.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package config_parser diff --git a/pkg/config_parser/walker.go b/pkg/config_parser/walker.go index c207d7da5..76064a3f4 100644 --- a/pkg/config_parser/walker.go +++ b/pkg/config_parser/walker.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ // This file should trace https://github.com/daeuniverse/dae-config-dist/blob/main/dae_config.g4. diff --git a/pkg/geodata/decode.go b/pkg/geodata/decode.go index 1bdbeca84..1f65a75ba 100644 --- a/pkg/geodata/decode.go +++ b/pkg/geodata/decode.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ // Modified from https://github.com/v2fly/v2ray-core/blob/42b166760b2ba8d984e514b830fcd44e23728e43/infra/conf/geodata/memconservative diff --git a/pkg/geodata/geodata.go b/pkg/geodata/geodata.go index 490410ff0..f864b94a3 100644 --- a/pkg/geodata/geodata.go +++ b/pkg/geodata/geodata.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ // Modified from https://github.com/v2fly/v2ray-core/blob/42b166760b2ba8d984e514b830fcd44e23728e43/infra/conf/geodata/memconservative diff --git a/pkg/logger/logger.go b/pkg/logger/logger.go index d0e905b4e..a1267bb23 100644 --- a/pkg/logger/logger.go +++ b/pkg/logger/logger.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2022-2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package logger diff --git a/pkg/trie/trie.go b/pkg/trie/trie.go index c55fd8c32..5f95f694b 100644 --- a/pkg/trie/trie.go +++ b/pkg/trie/trie.go @@ -1,3 +1,8 @@ +/* +* SPDX-License-Identifier: AGPL-3.0-only +* Copyright (c) 2022-2024, daeuniverse Organization + */ + // Package trie is modified from https://github.com/openacid/succinct/blob/loc100/sskv.go. // Slower than about 30% but more than 40% memory saving. diff --git a/pkg/trie/trie_test.go b/pkg/trie/trie_test.go index d9e5697c7..8261390c6 100644 --- a/pkg/trie/trie_test.go +++ b/pkg/trie/trie_test.go @@ -1,6 +1,6 @@ /* * SPDX-License-Identifier: AGPL-3.0-only - * Copyright (c) 2023, daeuniverse Organization + * Copyright (c) 2022-2024, daeuniverse Organization */ package trie