()
| 92 | func (a *Addr) Network() string { return "socks" } |
| 93 | |
| 94 | func (a *Addr) String() string { |
| 95 | if a == nil { |
| 96 | return "<nil>" |
| 97 | } |
| 98 | port := strconv.Itoa(a.Port) |
| 99 | if a.IP == nil { |
| 100 | return net.JoinHostPort(a.Name, port) |
| 101 | } |
| 102 | return net.JoinHostPort(a.IP.String(), port) |
| 103 | } |
| 104 | |
| 105 | // A Conn represents a forward proxy connection. |
| 106 | type Conn struct { |
no outgoing calls