mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2950] 日志中 hostname 永远为空 #2353
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#2353
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @weilinfox on GitHub (May 24, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2950
Bug Description
frpc 登陆部分的日志中, hostname 字段一直为空,形如
hostname [],看了其他 issue 贴上来的日志好像也是这样诶貌似在登陆部分的代码中没有也没有对
Hostname赋值来着 https://github.com/fatedier/frp/blob/dev/client/service.go#L311frpc Version
0.42.0
frps Version
0.42.0
System Architecture
linux/amd64
Configurations
frps 配置:
[common]
bind_port = 9005
allow_ports = 50035-50049
max_pool_count = 20
token = token
frpc配置:
[common]
server_addr = server_addr
server_port = 9005
token = token
Logs
5月 23 17:10:49 inuyasha-netfront frps[18662]: 2022/05/23 17:10:49 [I] [control.go:307] [7db10355edf2caa1] control writer is closing
5月 23 17:10:49 inuyasha-netfront frps[18662]: 2022/05/23 17:10:49 [I] [control.go:396] [7db10355edf2caa1] client exit success
5月 23 17:39:10 inuyasha-netfront frps[18662]: 2022/05/23 17:39:10 [I] [service.go:450] [1006f657d08a7873] client login info: ip [113.225.99.133:7736] version [0.42.0] hostname [] os [linux] arch [amd64]
Steps to reproduce
正常运行即可复现。
Affected area
@fatedier commented on GitHub (May 24, 2022):
恩,目前是有意这么做的。
因为考虑 hostname 会涉及到一些隐私信息,所以目前没有使用以及上报这个字段。
@weilinfox commented on GitHub (May 24, 2022):
这个能否作为 frpc 配置文件中的一个可选的字段呢,这样应该就不会有隐私问题了。
@fatedier commented on GitHub (May 25, 2022):
没有这方面的考虑,如果有需要,可以自行修改源码编译。
@weilinfox commented on GitHub (May 25, 2022):
哦哦这样,好的