proxy connection

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

No files matched your search

+3 -1
View File
@@ -80,7 +80,9 @@ func (this *FreedomConnection) Dispatch(destination v2net.Destination, payload *
destination = this.ResolveIP(destination)
}
err := retry.Timed(5, 100).On(func() error {
rawConn, err := internet.Dial(this.meta.Address, destination, this.meta.StreamSettings)
rawConn, err := internet.Dial(this.meta.Address, destination, internet.DialerOptions{
Stream: this.meta.StreamSettings,
})
if err != nil {
return err
}