fix test break

pull/2034/head
v2ray 2016-08-16 08:37:38 +02:00
parent a83009afc4
commit 9876844296
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 1 additions and 4 deletions

View File

@ -24,10 +24,7 @@ func TestHubSocksOption(t *testing.T) {
assert.Error(err).IsNil()
conn := hub.Connection()
sysfd, err := internal.GetSysFd(conn)
assert.Error(err).IsNil()
fd, err := sysfd.SysFd()
fd, err := internal.GetSysFd(conn)
assert.Error(err).IsNil()
v, err := syscall.GetsockoptInt(fd, syscall.SOL_IP, syscall.IP_TRANSPARENT)