diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 24c5ca0..b68d0b2 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 78df519..ecc3487 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 09874f6..610900c 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 ada1488..14c9dc1 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 5b70c56..e785a0d 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 98a6dc2..1151c3b 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 7e2f7fd..0eadd6d 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 0dbcdeb..c56d422 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 b5ff423..8d977df 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 cbe173d..ba9d6d2 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 15e5355..f86b0bd 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 312bbe5..489b3ac 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 430dfd6..10872f9 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 1d4df53..15820d5 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 7584429..228023e 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 7282871..c5c4e56 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 42e597b..004f2be 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 cd02bb4..e95175d 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 43e3c96..cdb3dc3 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 786e182..79cd2f3 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 6cc5bb5..d1e2056 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 5867146..fab59c9 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 30116ce..99af3e6 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 a9b18d0..58a7701 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 66e50f0..b382fd2 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 3425dc6..7cf13b2 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 6d416bd..1f592ea 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 1d8572f..97b1ba6 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 b48d16a..4af6e34 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 2fb438a..298a527 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 973b248..b6917e3 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 a025c9c..7524bae 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 b2334d9..4e64a07 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 25382cd..bcae148 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 2595707..5bb0c1d 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 548b233..a79bafd 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 ef61536..72e2d20 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 9a5098f..a3a4df8 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 3e8622e..14b6f2b 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 65a95d4..1a84869 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 b0aeb19..99a3d10 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 df6db3c..2b6fb9f 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 6d94d52..40b5117 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 ac9b610..1ebf22a 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 0a6f412..4b436d7 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 d1bc0aa..fecb17e 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 76b5b10..4268cc2 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 78e2095..30b310c 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 552a1be..0decc2b 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 d20bff0..97072ae 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 57c3a93..e0303e1 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 dd9b908..3a5349c 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 4824da7..49017db 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 ae8da48..f69425a 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 c6d372c..27f75a3 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 faa4eaa..bd2ad6b 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 9ab3970..d27c782 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 135b872..18ad6d4 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 c0de779..02e3484 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 dce4a7c..449ff0a 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 b523bfc..10ef494 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 2fd205c..e7ee8dd 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 7c5ed15..cc8f9f6 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 5ae3192..fb6f88e 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 312125b..648d2aa 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 297d590..752d8ee 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 1cdc138..5c14072 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 49f5c28..91fef67 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 bacb66e..910bdf6 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 3e921fc..3627d9e 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 3a06c03..5b66a77 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 9803b28..937707c 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 b7c8b84..639b9f2 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 c23a726..f06fd0f 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 429a587..dc10193 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 687a259..72afad8 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 f2158d2..324354a 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 6c06766..fad148a 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 ab1faf9..2e47958 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 83c16ab..631e13a 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 9e4b878..a963090 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 de2ed3f..718790f 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 cb04c7e..722ce15 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 5e937a5..9e05e93 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 5561e7b..4274439 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 c92e4ff..f720617 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 c841201..5245bad 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 101c131..40d99f5 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 acc88ef..afe6326 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 5b65e47..c27498e 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 29885d3..06d00cb 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 b70b2ac..e4b30ed 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 a88c25d..97005ac 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 4ddcde9..fab4e1d 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 3c449b9..8066972 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 0383607..d1025b5 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 a1e51f6..56319f2 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 d6b4b64..55300b5 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 85b8a12..c7036e1 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 7250bc1..2fd1e9f 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 85c0346..c429db6 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 36fd4ad..cefa7c0 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 a0c8753..6908173 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 0701272..8a99edb 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 0000000..f984e3b --- /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 0000000..c068901 --- /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 ed5de8e..c30c993 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 b69f5f1..f894451 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 c04b10c..de8f41a 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 4995ccc..592aae3 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 d53bae6..f1802f8 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 dbe08f4..5284856 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 c207d7d..76064a3 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 1bdbeca..1f65a75 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 490410f..f864b94 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 d0e905b..a1267bb 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 c55fd8c..5f95f69 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 d9e5697..8261390 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