default send through value

This commit is contained in:
Darien Raymond
2016-10-18 00:02:41 +02:00
parent 4a67587873
commit ad59e56925
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -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()
}
+1 -1
View File
@@ -111,7 +111,7 @@ func NewPoint(pConfig *Config) (*Point, error) {
outboundHandler, err := proxyregistry.CreateOutboundHandler(
outbound.Settings.Type, vpoint.space, outboundSettings, &proxy.OutboundHandlerMeta{
Tag: outbound.Tag,
Address: outbound.SendThrough.AsAddress(),
Address: outbound.GetSendThroughValue(),
StreamSettings: outbound.StreamSettings,
})
if err != nil {