mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-04 16:37:12 -05:00
default send through value
This commit is contained in:
parent
4a67587873
commit
ad59e56925
@ -46,3 +46,10 @@ func (this *OutboundConnectionConfig) GetTypedSettings() (interface{}, error) {
|
|||||||
}
|
}
|
||||||
return this.GetSettings().GetInstance()
|
return this.GetSettings().GetInstance()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (this *OutboundConnectionConfig) GetSendThroughValue() v2net.Address {
|
||||||
|
if this.GetSendThrough() == nil {
|
||||||
|
return v2net.AnyIP
|
||||||
|
}
|
||||||
|
return this.SendThrough.AsAddress()
|
||||||
|
}
|
||||||
|
2
v2ray.go
2
v2ray.go
@ -111,7 +111,7 @@ func NewPoint(pConfig *Config) (*Point, error) {
|
|||||||
outboundHandler, err := proxyregistry.CreateOutboundHandler(
|
outboundHandler, err := proxyregistry.CreateOutboundHandler(
|
||||||
outbound.Settings.Type, vpoint.space, outboundSettings, &proxy.OutboundHandlerMeta{
|
outbound.Settings.Type, vpoint.space, outboundSettings, &proxy.OutboundHandlerMeta{
|
||||||
Tag: outbound.Tag,
|
Tag: outbound.Tag,
|
||||||
Address: outbound.SendThrough.AsAddress(),
|
Address: outbound.GetSendThroughValue(),
|
||||||
StreamSettings: outbound.StreamSettings,
|
StreamSettings: outbound.StreamSettings,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user