mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-30 07:35:44 +00:00
nil pointer
This commit is contained in:
1 file changed
+1
-1
@@ -109,7 +109,7 @@ func (this *InboundDetourHandlerDynamic) refresh() error {
|
|||||||
port := this.pickUnusedPort()
|
port := this.pickUnusedPort()
|
||||||
ichConfig, _ := config.GetTypedSettings()
|
ichConfig, _ := config.GetTypedSettings()
|
||||||
ich, err := proxyregistry.CreateInboundHandler(config.Settings.Type, this.space, ichConfig, &proxy.InboundHandlerMeta{
|
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 {
|
if err != nil {
|
||||||
delete(this.portsInUse, port)
|
delete(this.portsInUse, port)
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in new issue
Block a user