1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-02 23:47:07 -05:00

fix test break

This commit is contained in:
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

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)