From 5fb5010762a26b9185981a72e3bc505f4af1af49 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sun, 15 Jul 2018 12:55:49 +1000 Subject: [PATCH] Fix connection.utp --- connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connection.go b/connection.go index 9bc13124..d1aa9fcb 100644 --- a/connection.go +++ b/connection.go @@ -242,7 +242,7 @@ func (cn *connection) connectionFlags() (ret string) { } func (cn *connection) utp() bool { - return strings.Contains(cn.remoteAddr().Network(), "utp") + return isUtpNetwork(cn.remoteAddr().Network()) } // Inspired by https://github.com/transmission/transmission/wiki/Peer-Status-Text.