1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-29 02:35:23 +00:00

nil pointer

This commit is contained in:
Darien Raymond 2016-10-18 10:04:15 +02:00
parent f049b3cc2b
commit 9b4d9cf0e7
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -109,7 +109,7 @@ func (this *InboundDetourHandlerDynamic) refresh() error {
port := this.pickUnusedPort()
ichConfig, _ := config.GetTypedSettings()
ich, err := proxyregistry.CreateInboundHandler(config.Settings.Type, this.space, ichConfig, &proxy.InboundHandlerMeta{
Address: config.ListenOn.AsAddress(), Port: port, Tag: config.Tag, StreamSettings: config.StreamSettings})
Address: config.GetListenOnValue(), Port: port, Tag: config.Tag, StreamSettings: config.StreamSettings})
if err != nil {
delete(this.portsInUse, port)
return err