|
|
@ -24,14 +24,12 @@ func TestSockOptMark(t *testing.T) {
|
|
|
|
defer tcpServer.Close()
|
|
|
|
defer tcpServer.Close()
|
|
|
|
|
|
|
|
|
|
|
|
const mark = 1
|
|
|
|
const mark = 1
|
|
|
|
ctx := context.Background()
|
|
|
|
dialer := DefaultSystemDialer{}
|
|
|
|
ctx = ContextWithStreamSettings(ctx, &MemoryStreamConfig{
|
|
|
|
conn, err := dialer.Dial(context.Background(), nil, dest, &MemoryStreamConfig{
|
|
|
|
SocketSettings: &SocketConfig{
|
|
|
|
SocketSettings: &SocketConfig{
|
|
|
|
Mark: mark,
|
|
|
|
Mark: mark,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
})
|
|
|
|
dialer := DefaultSystemDialer{}
|
|
|
|
|
|
|
|
conn, err := dialer.Dial(ctx, nil, dest)
|
|
|
|
|
|
|
|
common.Must(err)
|
|
|
|
common.Must(err)
|
|
|
|
defer conn.Close()
|
|
|
|
defer conn.Close()
|
|
|
|
|
|
|
|
|
|
|
|