Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
close #4324
之前因为UDS的source留空会导致panic 所以写了具体的 uds 地址作为占位符
但是UDS监听不一定代表源地址是无效的 当时没有考虑到 源地址可能被传输协议专有的方法比如从
X-Forwarded-For
中读取出来 这种情况下源地址是有效的 所以稍微做一下校验至于issue里有的情况没法复现 因为各入站实现不同 有的是从 conn 中读取源地址 这种可以正常读到 有的是从 ctx 读取 填入uds作为占位的情况只填到了 ctx 里面