1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-26 03:55:26 -05:00

proxy connection

This commit is contained in:
Darien Raymond
2016-11-09 00:17:09 +01:00
parent 7a09fcdc2f
commit d343cb1ee6
5 changed files with 153 additions and 14 deletions

View File

@@ -48,7 +48,9 @@ func (this *Client) Dispatch(destination v2net.Destination, payload *alloc.Buffe
server = this.serverPicker.PickServer()
dest := server.Destination()
dest.Network = network
rawConn, err := internet.Dial(this.meta.Address, dest, this.meta.StreamSettings)
rawConn, err := internet.Dial(this.meta.Address, dest, internet.DialerOptions{
Stream: this.meta.StreamSettings,
})
if err != nil {
return err
}