]> Cypherpunks.ru repositories - ucspi.git/commitdiff
Unnecessary UCSPI prefix
authorSergey Matveev <stargrave@stargrave.org>
Sat, 11 Sep 2021 15:22:37 +0000 (18:22 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 11 Sep 2021 15:22:37 +0000 (18:22 +0300)
conn.go

diff --git a/conn.go b/conn.go
index ad9c697251a7758754aee4dc90bdd481f4d50e2e..7a6ac4227f90b8ad8ab2882ebb3736489fecab61 100644 (file)
--- a/conn.go
+++ b/conn.go
@@ -26,14 +26,14 @@ import (
 
 var aLongTimeAgo = time.Unix(1, 0)
 
 
 var aLongTimeAgo = time.Unix(1, 0)
 
-type UCSPIAddr struct {
+type Addr struct {
        ip   string
        port string
 }
 
        ip   string
        port string
 }
 
-func (addr *UCSPIAddr) Network() string { return "tcp" }
+func (addr *Addr) Network() string { return "tcp" }
 
 
-func (addr *UCSPIAddr) String() string { return addr.ip + ":" + addr.port }
+func (addr *Addr) String() string { return addr.ip + ":" + addr.port }
 
 type Conn struct {
        R   *os.File
 
 type Conn struct {
        R   *os.File
@@ -70,11 +70,11 @@ func (conn *Conn) Close() error {
 }
 
 func (conn *Conn) LocalAddr() net.Addr {
 }
 
 func (conn *Conn) LocalAddr() net.Addr {
-       return &UCSPIAddr{ip: os.Getenv("TCPLOCALIP"), port: os.Getenv("TCPLOCALPORT")}
+       return &Addr{ip: os.Getenv("TCPLOCALIP"), port: os.Getenv("TCPLOCALPORT")}
 }
 
 func (conn *Conn) RemoteAddr() net.Addr {
 }
 
 func (conn *Conn) RemoteAddr() net.Addr {
-       return &UCSPIAddr{ip: os.Getenv("TCPREMOTEIP"), port: os.Getenv("TCPREMOTEPORT")}
+       return &Addr{ip: os.Getenv("TCPREMOTEIP"), port: os.Getenv("TCPREMOTEPORT")}
 }
 
 func (conn *Conn) SetDeadline(t time.Time) error {
 }
 
 func (conn *Conn) SetDeadline(t time.Time) error {