This commit is contained in:
idk
2023-05-14 19:19:52 +00:00
parent 16a5d27f0c
commit 272ef550b7
64 changed files with 116 additions and 116 deletions

View File

@ -1,4 +1,4 @@
// Copyright 2020 xgfone
// Copyright 2020 xgfone, 2023 idk
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -20,7 +20,7 @@ import (
"net/url"
"sync"
"github.com/xgfone/bt/metainfo"
"github.com/eyedeekay/go-i2p-bt/metainfo"
)
// Force a peer address to be used

View File

@ -1,4 +1,4 @@
// Copyright 2020 xgfone
// Copyright 2020 xgfone, 2023 idk
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View File

@ -1,4 +1,4 @@
// Copyright 2020 xgfone
// Copyright 2020 xgfone, 2023 idk
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View File

@ -1,4 +1,4 @@
// Copyright 2020 xgfone
// Copyright 2020 xgfone, 2023 idk
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -31,8 +31,8 @@ import (
"strconv"
"strings"
"github.com/xgfone/bt/bencode"
"github.com/xgfone/bt/metainfo"
"github.com/eyedeekay/go-i2p-bt/bencode"
"github.com/eyedeekay/go-i2p-bt/metainfo"
)
// AnnounceRequest is the tracker announce requests.

View File

@ -1,4 +1,4 @@
// Copyright 2020 xgfone
// Copyright 2020 xgfone, 2023 idk
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -22,8 +22,8 @@ import (
"strings"
"github.com/eyedeekay/i2pkeys"
"github.com/xgfone/bt/bencode"
"github.com/xgfone/bt/metainfo"
"github.com/eyedeekay/go-i2p-bt/bencode"
"github.com/eyedeekay/go-i2p-bt/metainfo"
)
var errInvalidPeer = errors.New("invalid peer information format")

View File

@ -1,4 +1,4 @@
// Copyright 2020 xgfone
// Copyright 2020 xgfone, 2023 idk
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View File

@ -1,4 +1,4 @@
// Copyright 2020 xgfone
// Copyright 2020 xgfone, 2023 idk
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -18,7 +18,7 @@ import (
"reflect"
"testing"
"github.com/xgfone/bt/metainfo"
"github.com/eyedeekay/go-i2p-bt/metainfo"
)
func TestHTTPAnnounceRequest(t *testing.T) {

View File

@ -1,4 +1,4 @@
// Copyright 2020 xgfone
// Copyright 2020 xgfone, 2023 idk
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -26,9 +26,9 @@ import (
"net/http"
"net/url"
"github.com/xgfone/bt/metainfo"
"github.com/xgfone/bt/tracker/httptracker"
"github.com/xgfone/bt/tracker/udptracker"
"github.com/eyedeekay/go-i2p-bt/metainfo"
"github.com/eyedeekay/go-i2p-bt/tracker/httptracker"
"github.com/eyedeekay/go-i2p-bt/tracker/udptracker"
)
// Predefine some announce events.

View File

@ -1,4 +1,4 @@
// Copyright 2020 xgfone
// Copyright 2020 xgfone, 2023 idk
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -22,8 +22,8 @@ import (
"net"
"time"
"github.com/xgfone/bt/metainfo"
"github.com/xgfone/bt/tracker/udptracker"
"github.com/eyedeekay/go-i2p-bt/metainfo"
"github.com/eyedeekay/go-i2p-bt/tracker/udptracker"
)
type testHandler struct{}

View File

@ -1,4 +1,4 @@
// Copyright 2020 xgfone
// Copyright 2020 xgfone, 2023 idk
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -26,7 +26,7 @@ import (
"net"
"github.com/eyedeekay/i2pkeys"
"github.com/xgfone/bt/metainfo"
"github.com/eyedeekay/go-i2p-bt/metainfo"
)
// ProtocolID is magic constant for the udp tracker connection.

View File

@ -1,4 +1,4 @@
// Copyright 2020 xgfone
// Copyright 2020 xgfone, 2023 idk
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -25,7 +25,7 @@ import (
"sync/atomic"
"time"
"github.com/xgfone/bt/metainfo"
"github.com/eyedeekay/go-i2p-bt/metainfo"
)
var Dial = net.Dial

View File

@ -1,4 +1,4 @@
// Copyright 2020 xgfone
// Copyright 2020 xgfone, 2023 idk
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -24,7 +24,7 @@ import (
"sync/atomic"
"time"
"github.com/xgfone/bt/metainfo"
"github.com/eyedeekay/go-i2p-bt/metainfo"
)
// ServerHandler is used to handle the request from the client.

View File

@ -1,4 +1,4 @@
// Copyright 2020 xgfone
// Copyright 2020 xgfone, 2023 idk
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -22,7 +22,7 @@ import (
"net"
"time"
"github.com/xgfone/bt/metainfo"
"github.com/eyedeekay/go-i2p-bt/metainfo"
)
type testHandler struct{}