It was only used in tests.
Signed-off-by: Cory Snider <csnider@mirantis.com>
| ... | ... |
@@ -2,8 +2,6 @@ |
| 2 | 2 |
// and UDP. |
| 3 | 3 |
package main |
| 4 | 4 |
|
| 5 |
-import "net" |
|
| 6 |
- |
|
| 7 | 5 |
// ipVersion refers to IP version - v4 or v6 |
| 8 | 6 |
type ipVersion string |
| 9 | 7 |
|
| ... | ... |
@@ -25,6 +23,4 @@ type Proxy interface {
|
| 25 | 25 |
Run() |
| 26 | 26 |
// Close stops forwarding traffic and close both ends of the Proxy. |
| 27 | 27 |
Close() |
| 28 |
- // FrontendAddr returns the address on which the proxy is listening. |
|
| 29 |
- FrontendAddr() net.Addr |
|
| 30 | 28 |
} |
| ... | ... |
@@ -79,6 +79,3 @@ func (proxy *SCTPProxy) Run() {
|
| 79 | 79 |
|
| 80 | 80 |
// Close stops forwarding the traffic. |
| 81 | 81 |
func (proxy *SCTPProxy) Close() { proxy.listener.Close() }
|
| 82 |
- |
|
| 83 |
-// FrontendAddr returns the SCTP address on which the proxy is listening. |
|
| 84 |
-func (proxy *SCTPProxy) FrontendAddr() net.Addr { return proxy.frontendAddr }
|
| ... | ... |
@@ -75,6 +75,3 @@ func (proxy *TCPProxy) Run() {
|
| 75 | 75 |
|
| 76 | 76 |
// Close stops forwarding the traffic. |
| 77 | 77 |
func (proxy *TCPProxy) Close() { proxy.listener.Close() }
|
| 78 |
- |
|
| 79 |
-// FrontendAddr returns the TCP address on which the proxy is listening. |
|
| 80 |
-func (proxy *TCPProxy) FrontendAddr() net.Addr { return proxy.frontendAddr }
|
| ... | ... |
@@ -147,9 +147,6 @@ func (proxy *UDPProxy) Close() {
|
| 147 | 147 |
} |
| 148 | 148 |
} |
| 149 | 149 |
|
| 150 |
-// FrontendAddr returns the UDP address on which the proxy is listening. |
|
| 151 |
-func (proxy *UDPProxy) FrontendAddr() net.Addr { return proxy.frontendAddr }
|
|
| 152 |
- |
|
| 153 | 150 |
func isClosedError(err error) bool {
|
| 154 | 151 |
/* This comparison is ugly, but unfortunately, net.go doesn't export errClosing. |
| 155 | 152 |
* See: |