Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Supernode local cdn connet check is not necessary when --cdnPattern=s…
Browse files Browse the repository at this point in the history
…ource

Signed-off-by: PWZER <[email protected]>
  • Loading branch information
PWZER committed Dec 2, 2020
1 parent 011e011 commit 91d2b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dfget/core/downloader/p2p_downloader/power_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (pc *PowerClient) downloadPiece() (content *pool.Buffer, e error) {
peerPort := pc.pieceTask.PeerPort

// check that the target download peer is available
if dstIP != "" && dstIP != pc.node {
if dstIP != "" && dstIP != pc.node && pc.pieceTask.Path != pc.cfg.URL {
if _, e = httputils.CheckConnect(dstIP, peerPort, -1); e != nil {
return nil, e
}
Expand Down

0 comments on commit 91d2b64

Please sign in to comment.