fix panic

This commit is contained in:
yuzuki999
2023-08-30 16:31:42 +08:00
committed by cubemaze
parent 9e05e3830f
commit a95a060d60
4 changed files with 27 additions and 5 deletions

View File

@@ -294,7 +294,7 @@ func (d *DefaultDispatcher) Dispatch(ctx context.Context, destination net.Destin
ob.Target = destination
}
}
d.routedDispatch(ctx, outbound, destination, l, result.Protocol())
d.routedDispatch(ctx, outbound, destination, l, content.Protocol)
}()
}
return inbound, nil
@@ -346,7 +346,7 @@ func (d *DefaultDispatcher) DispatchLink(ctx context.Context, destination net.De
}
destination.Address.Family()
}
d.routedDispatch(ctx, outbound, destination, nil, result.Protocol())
d.routedDispatch(ctx, outbound, destination, nil, content.Protocol)
}
return nil