mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-06 09:15:37 -05:00
default send through value
This commit is contained in:
@@ -46,3 +46,10 @@ func (this *OutboundConnectionConfig) GetTypedSettings() (interface{}, error) {
|
||||
}
|
||||
return this.GetSettings().GetInstance()
|
||||
}
|
||||
|
||||
func (this *OutboundConnectionConfig) GetSendThroughValue() v2net.Address {
|
||||
if this.GetSendThrough() == nil {
|
||||
return v2net.AnyIP
|
||||
}
|
||||
return this.SendThrough.AsAddress()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user