clean imports

This commit is contained in:
Darien Raymond committed 2017-01-14 00:27:45 +01:00
1 parent b40a139310
commit 8b00d6fc30
26 files changed
+96 -100

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@ package internet_test
import (
"testing"
v2net "v2ray.com/core/common/net"
"v2ray.com/core/common/net"
"v2ray.com/core/testing/assert"
"v2ray.com/core/testing/servers/tcp"
. "v2ray.com/core/transport/internet"
@@ -17,7 +17,7 @@ func TestDialWithLocalAddr(t *testing.T) {
assert.Error(err).IsNil()
defer server.Close()
conn, err := DialSystem(v2net.LocalHostIP, v2net.TCPDestination(v2net.LocalHostIP, dest.Port))
conn, err := DialSystem(net.LocalHostIP, net.TCPDestination(net.LocalHostIP, dest.Port))
assert.Error(err).IsNil()
assert.String(conn.RemoteAddr().String()).Equals("127.0.0.1:" + dest.Port.String())
conn.Close()
+1
View File
@@ -4,6 +4,7 @@ import (
"net"
"testing"
"time"
v2net "v2ray.com/core/common/net"
"v2ray.com/core/testing/assert"
. "v2ray.com/core/transport/internet/internal"
+1 -2
View File
@@ -1,13 +1,12 @@
package kcp
import (
"crypto/cipher"
"crypto/tls"
"net"
"sync"
"sync/atomic"
"crypto/cipher"
"v2ray.com/core/common"
"v2ray.com/core/common/buf"
"v2ray.com/core/common/dice"
+1 -2
View File
@@ -1,14 +1,13 @@
package kcp
import (
"crypto/cipher"
"crypto/tls"
"io"
"net"
"sync"
"time"
"crypto/cipher"
"v2ray.com/core/common"
"v2ray.com/core/common/buf"
"v2ray.com/core/common/errors"