1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-10 07:45:54 -04:00

allow outbound to be proxied

This commit is contained in:
Darien Raymond
2016-11-10 23:41:28 +01:00
parent e30f466424
commit 5dc05d6352
17 changed files with 222 additions and 83 deletions

View File

@@ -34,6 +34,14 @@ type OutboundHandlerMeta struct {
Tag string
Address v2net.Address
StreamSettings *internet.StreamConfig
ProxySettings *internet.ProxyConfig
}
func (this *OutboundHandlerMeta) GetDialerOptions() internet.DialerOptions {
return internet.DialerOptions{
Stream: this.StreamSettings,
Proxy: this.ProxySettings,
}
}
// An InboundHandler handles inbound network connections to V2Ray.