]> Sergey Matveev's repositories - btrtrc.git/blobdiff - connection.go
Move IpPort to missinggo
[btrtrc.git] / connection.go
index 2b35ef4dc1ae3d4888504687fafbfa279db6a739..69b80244ba3eba0912b1aa12749b9cb62d7e9184 100644 (file)
@@ -45,7 +45,7 @@ type connection struct {
        conn       net.Conn
        outgoing   bool
        network    string
-       remoteAddr ipPort
+       remoteAddr IpPort
        // The Reader and Writer for this Conn, with hooks installed for stats,
        // limiting, deadlines etc.
        w io.Writer
@@ -1551,6 +1551,6 @@ func (c *connection) remoteIp() net.IP {
        return c.remoteAddr.IP
 }
 
-func (c *connection) remoteIpPort() ipPort {
+func (c *connection) remoteIpPort() IpPort {
        return c.remoteAddr
 }