]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Add connection.String
authorMatt Joiner <anacrolix@gmail.com>
Tue, 1 Oct 2019 11:16:18 +0000 (21:16 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 1 Oct 2019 11:16:18 +0000 (21:16 +1000)
connection.go

index 814d56ca9dfcff500b38d6c55c97e7c5f76a2adb..c2914bbdaffb4ca605b2b77e05d96fc32884aff3 100644 (file)
@@ -1560,3 +1560,7 @@ func (c *connection) remoteIp() net.IP {
 func (c *connection) remoteIpPort() IpPort {
        return c.remoteAddr
 }
+
+func (c *connection) String() string {
+       return fmt.Sprintf("%p", c)
+}