Skip to content

Commit

Permalink
add: ErrUnsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
r3inbowari committed May 7, 2024
1 parent 975be09 commit 91a2f7d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions speedtest/transport/tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ var (
)

var (
ErrEchoData = errors.New("incorrect echo data")
ErrEmptyConn = errors.New("empty conn")
ErrEchoData = errors.New("incorrect echo data")
ErrEmptyConn = errors.New("empty conn")
ErrUnsupported = errors.New("unsupported protocol tcp") // Some servers have disabled ip:8080, we return this error.
)

func pingFormat(locTime int64) []byte {
Expand Down

0 comments on commit 91a2f7d

Please sign in to comment.