Skip to content

Commit

Permalink
chore(license): insert license info to target files
Browse files Browse the repository at this point in the history
  • Loading branch information
sumire88 committed Jan 3, 2024
1 parent 7985468 commit 12a2b7c
Show file tree
Hide file tree
Showing 17 changed files with 84 additions and 4 deletions.
5 changes: 5 additions & 0 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
* Copyright (c) 2022-2024, daeuniverse Organization <[email protected]>
*/

package cmd

import (
Expand Down
5 changes: 5 additions & 0 deletions cmd/internal/su.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
* Copyright (c) 2022-2024, daeuniverse Organization <[email protected]>
*/

package internal

import (
Expand Down
5 changes: 5 additions & 0 deletions cmd/run.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
* Copyright (c) 2022-2024, daeuniverse Organization <[email protected]>
*/

package cmd

import (
Expand Down
5 changes: 5 additions & 0 deletions common/consts/app.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
* Copyright (c) 2022-2024, daeuniverse Organization <[email protected]>
*/

package consts

var (
Expand Down
5 changes: 5 additions & 0 deletions common/consts/net.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
* Copyright (c) 2022-2024, daeuniverse Organization <[email protected]>
*/

package consts

const (
Expand Down
5 changes: 5 additions & 0 deletions common/netutils/dnsconfig_unix.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
* Copyright (c) 2022-2024, daeuniverse Organization <[email protected]>
*/

// Modified from go1.18/src/net/dnsconfig_unix.go

// Copyright 2009 The Go Authors. All rights reserved.
Expand Down
5 changes: 5 additions & 0 deletions common/netutils/ip46_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
* Copyright (c) 2022-2024, daeuniverse Organization <[email protected]>
*/

package netutils

import (
Expand Down
5 changes: 5 additions & 0 deletions component/outbound/dialer/annotation.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
* Copyright (c) 2022-2024, daeuniverse Organization <[email protected]>
*/

package dialer

import (
Expand Down
5 changes: 5 additions & 0 deletions component/outbound/dialer/dialer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
* Copyright (c) 2022-2024, daeuniverse Organization <[email protected]>
*/

package dialer

import (
Expand Down
5 changes: 5 additions & 0 deletions component/outbound/dialer/direct.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
* Copyright (c) 2022-2024, daeuniverse Organization <[email protected]>
*/

package dialer

import (
Expand Down
5 changes: 5 additions & 0 deletions component/outbound/dialer/utils.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
* Copyright (c) 2022-2024, daeuniverse Organization <[email protected]>
*/

package dialer

import "time"
Expand Down
5 changes: 5 additions & 0 deletions component/sniffing/internal/quicutils/hkdf.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
* Copyright (c) 2022-2024, daeuniverse Organization <[email protected]>
*/

// Modified from https://github.com/quic-go/quic-go/blob/58cedf7a4f/internal/handshake/hkdf.go

package quicutils
Expand Down
5 changes: 5 additions & 0 deletions component/sniffing/quic_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
* Copyright (c) 2022-2024, daeuniverse Organization <[email protected]>
*/

package sniffing

import (
Expand Down
5 changes: 5 additions & 0 deletions control/anyfrom_pool.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
* Copyright (c) 2022-2024, daeuniverse Organization <[email protected]>
*/

package control

import (
Expand Down
5 changes: 5 additions & 0 deletions control/packet_sniffer_pool_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
* Copyright (c) 2022-2024, daeuniverse Organization <[email protected]>
*/

package control

import (
Expand Down
8 changes: 4 additions & 4 deletions hack/maintenance/append_license_signature.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ insert_lines() {
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 <[email protected]>"
echo "#"
echo "/*"
echo "* SPDX-License-Identifier: AGPL-3.0-only"
echo "* Copyright (c) 2022-2024, daeuniverse Organization <[email protected]>"
echo "*/"
echo
cat "$file"
} >tempfile && mv tempfile "$file"
Expand Down
5 changes: 5 additions & 0 deletions pkg/trie/trie.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
* Copyright (c) 2022-2024, daeuniverse Organization <[email protected]>
*/

// Package trie is modified from https://github.com/openacid/succinct/blob/loc100/sskv.go.
// Slower than about 30% but more than 40% memory saving.

Expand Down

0 comments on commit 12a2b7c

Please sign in to comment.