diff options
author | anon5 <anon5clam@protonmail.com> | 2021-02-20 16:31:06 +0000 |
---|---|---|
committer | anon5 <anon5clam@protonmail.com> | 2021-02-20 16:31:06 +0000 |
commit | 8b61ee961a9191fd2731a48d46f33b561a316032 (patch) | |
tree | 5d9423e8e0dafbc2fb2b4cf91266ec4bdd19b305 /rudp/proxy/proxy.go | |
parent | 14c04859a14edfe326d9664107707c0c1ae90dea (diff) | |
download | mt-8b61ee961a9191fd2731a48d46f33b561a316032.tar.xz |
rudp: deprecate ErrClosed and replace with net.ErrClosed
Diffstat (limited to 'rudp/proxy/proxy.go')
-rw-r--r-- | rudp/proxy/proxy.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rudp/proxy/proxy.go b/rudp/proxy/proxy.go index 6fc14ec..833260b 100644 --- a/rudp/proxy/proxy.go +++ b/rudp/proxy/proxy.go @@ -15,7 +15,7 @@ import ( "net" "os" - "github.com/anon55555/mt/rudp" + "mt/rudp" ) func main() { @@ -61,7 +61,7 @@ func proxy(src, dest *rudp.Peer) { for { pkt, err := src.Recv() if err != nil { - if err == rudp.ErrClosed { + if err == net.ErrClosed { msg := src.Addr().String() + " disconnected" if src.TimedOut() { msg += " (timed out)" |